Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
31f95846
Commit
31f95846
authored
May 21, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics; shore up long winded code a bit in the activex plugin.
parent
9f857cd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
projects/activex/utils.cpp
projects/activex/utils.cpp
+9
-21
No files found.
projects/activex/utils.cpp
View file @
31f95846
...
...
@@ -111,37 +111,25 @@ HRESULT GetObjectProperty(LPUNKNOWN object, DISPID dispID, VARIANT& v)
HDC
CreateDevDC
(
DVTARGETDEVICE
*
ptd
)
{
HDC
hdc
=
NULL
;
HDC
hdc
;
if
(
NULL
==
ptd
)
{
hdc
=
CreateDC
(
TEXT
(
"DISPLAY"
),
NULL
,
NULL
,
NULL
);
}
else
{
LPDEVNAMES
lpDevNames
;
LPDEVMODE
lpDevMode
;
LPTSTR
lpszDriverName
;
LPTSTR
lpszDeviceName
;
LPTSTR
lpszPortName
;
LPDEVNAMES
lpDevNames
=
(
LPDEVNAMES
)
ptd
;
// offset for size field
LPDEVMODE
lpDevMode
=
NULL
;
lpDevNames
=
(
LPDEVNAMES
)
ptd
;
// offset for size field
if
(
ptd
->
tdExtDevmodeOffset
==
0
)
{
lpDevMode
=
NULL
;
}
else
{
if
(
ptd
->
tdExtDevmodeOffset
!=
0
)
lpDevMode
=
(
LPDEVMODE
)
((
LPTSTR
)
ptd
+
ptd
->
tdExtDevmodeOffset
);
}
lpszDriverName
=
(
LPTSTR
)
lpDevNames
+
ptd
->
tdDriverNameOffset
;
lpszDeviceName
=
(
LPTSTR
)
lpDevNames
+
ptd
->
tdDeviceNameOffset
;
lpszPortName
=
(
LPTSTR
)
lpDevNames
+
ptd
->
tdPortNameOffset
;
hdc
=
CreateDC
(
lpszDriverName
,
lpszDeviceName
,
lpszPortName
,
lpDevMode
);
hdc
=
CreateDC
(
(
LPTSTR
)
lpDevNames
+
ptd
->
tdDriverNameOffset
,
(
LPTSTR
)
lpDevNames
+
ptd
->
tdDeviceNameOffset
,
(
LPTSTR
)
lpDevNames
+
ptd
->
tdPortNameOffset
,
lpDevMode
);
}
return
hdc
;
return
hdc
;
};
#define HIMETRIC_PER_INCH 2540
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment