Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dc3706ae
Commit
dc3706ae
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Win64 printf format warning fixes.
parent
d3e324f8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
Makefile.in
dlls/uxtheme/Makefile.in
+0
-1
draw.c
dlls/uxtheme/draw.c
+6
-6
main.c
dlls/uxtheme/main.c
+1
-1
msstyles.c
dlls/uxtheme/msstyles.c
+1
-1
system.c
dlls/uxtheme/system.c
+7
-7
No files found.
dlls/uxtheme/Makefile.in
View file @
dc3706ae
...
...
@@ -6,7 +6,6 @@ MODULE = uxtheme.dll
IMPORTLIB
=
libuxtheme.
$(IMPLIBEXT)
IMPORTS
=
user32 gdi32 advapi32 kernel32 ntdll
DELAYIMPORTS
=
msimg32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
draw.c
\
...
...
dlls/uxtheme/draw.c
View file @
dc3706ae
...
...
@@ -53,7 +53,7 @@ HRESULT WINAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags)
static
const
WCHAR
szTab
[]
=
{
'T'
,
'a'
,
'b'
,
0
};
HRESULT
hr
;
TRACE
(
"(%p,0x%08
l
x
\n
"
,
hwnd
,
dwFlags
);
TRACE
(
"(%p,0x%08x
\n
"
,
hwnd
,
dwFlags
);
hr
=
SetPropW
(
hwnd
,
MAKEINTATOMW
(
atDialogThemeEnabled
),
(
HANDLE
)(
dwFlags
|
0x80000000
));
/* 0x80000000 serves as a "flags set" flag */
...
...
@@ -220,7 +220,7 @@ static PTHEME_PROPERTY UXTHEME_SelectImage(HTHEME hTheme, HDC hdc, int iPartId,
}
}
if
(
reqsize
.
x
<=
size
.
x
&&
reqsize
.
y
<=
size
.
y
)
{
TRACE
(
"Using image size %
ldx%l
d, image %d
\n
"
,
reqsize
.
x
,
reqsize
.
y
,
i
+
TMT_IMAGEFILE1
);
TRACE
(
"Using image size %
dx%
d, image %d
\n
"
,
reqsize
.
x
,
reqsize
.
y
,
i
+
TMT_IMAGEFILE1
);
return
fileProp
;
}
}
...
...
@@ -831,7 +831,7 @@ static HRESULT UXTHEME_DrawBackgroundFill(HTHEME hTheme, HDC hdc, int iPartId,
HRESULT
hr
=
S_OK
;
int
filltype
=
FT_SOLID
;
TRACE
(
"(%d,%d,%
l
d)
\n
"
,
iPartId
,
iStateId
,
pOptions
->
dwFlags
);
TRACE
(
"(%d,%d,%d)
\n
"
,
iPartId
,
iStateId
,
pOptions
->
dwFlags
);
if
(
pOptions
->
dwFlags
&
DTBG_OMITCONTENT
)
return
S_OK
;
...
...
@@ -929,7 +929,7 @@ HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId,
int
bgtype
=
BT_BORDERFILL
;
RECT
rt
;
TRACE
(
"(%p,%p,%d,%d,%
ld,%l
d)
\n
"
,
hTheme
,
hdc
,
iPartId
,
iStateId
,
pRect
->
left
,
pRect
->
top
);
TRACE
(
"(%p,%p,%d,%d,%
d,%
d)
\n
"
,
hTheme
,
hdc
,
iPartId
,
iStateId
,
pRect
->
left
,
pRect
->
top
);
if
(
!
hTheme
)
return
E_HANDLE
;
...
...
@@ -1627,7 +1627,7 @@ HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId
/* If nothing was found, leave unchanged */
}
TRACE
(
"left:%
ld,top:%ld,right:%ld,bottom:%l
d
\n
"
,
pContentRect
->
left
,
pContentRect
->
top
,
pContentRect
->
right
,
pContentRect
->
bottom
);
TRACE
(
"left:%
d,top:%d,right:%d,bottom:%
d
\n
"
,
pContentRect
->
left
,
pContentRect
->
top
,
pContentRect
->
right
,
pContentRect
->
bottom
);
return
S_OK
;
}
...
...
@@ -1675,7 +1675,7 @@ HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId,
/* If nothing was found, leave unchanged */
}
TRACE
(
"left:%
ld,top:%ld,right:%ld,bottom:%l
d
\n
"
,
pExtentRect
->
left
,
pExtentRect
->
top
,
pExtentRect
->
right
,
pExtentRect
->
bottom
);
TRACE
(
"left:%
d,top:%d,right:%d,bottom:%
d
\n
"
,
pExtentRect
->
left
,
pExtentRect
->
top
,
pExtentRect
->
right
,
pExtentRect
->
bottom
);
return
S_OK
;
}
...
...
dlls/uxtheme/main.c
View file @
dc3706ae
...
...
@@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
/* For the moment, do nothing here. */
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
TRACE
(
"%p 0x%
l
x %p: stub
\n
"
,
hInstDLL
,
fdwReason
,
lpv
);
TRACE
(
"%p 0x%x %p: stub
\n
"
,
hInstDLL
,
fdwReason
,
lpv
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hInstDLL
);
...
...
dlls/uxtheme/msstyles.c
View file @
dc3706ae
...
...
@@ -115,7 +115,7 @@ HRESULT MSSTYLES_OpenThemeFile(LPCWSTR lpThemeFile, LPCWSTR pszColorName, LPCWST
}
if
((
versize
=
SizeofResource
(
hTheme
,
hrsc
))
!=
2
)
{
TRACE
(
"Version resource found, but wrong size: %
l
d
\n
"
,
versize
);
TRACE
(
"Version resource found, but wrong size: %d
\n
"
,
versize
);
hr
=
HRESULT_FROM_WIN32
(
ERROR_BAD_FORMAT
);
goto
invalid_theme
;
}
...
...
dlls/uxtheme/system.c
View file @
dc3706ae
...
...
@@ -165,7 +165,7 @@ static void UXTHEME_LoadTheme(void)
}
else
{
bThemeActive
=
FALSE
;
TRACE
(
"Failed to get ThemeActive: %
l
d
\n
"
,
GetLastError
());
TRACE
(
"Failed to get ThemeActive: %d
\n
"
,
GetLastError
());
}
buffsize
=
sizeof
(
szCurrentColor
)
/
sizeof
(
szCurrentColor
[
0
]);
if
(
RegQueryValueExW
(
hKey
,
szColorName
,
NULL
,
NULL
,
(
LPBYTE
)
szCurrentColor
,
&
buffsize
))
...
...
@@ -725,7 +725,7 @@ DWORD WINAPI GetThemeAppProperties(void)
*/
void
WINAPI
SetThemeAppProperties
(
DWORD
dwFlags
)
{
TRACE
(
"(0x%08
l
x)
\n
"
,
dwFlags
);
TRACE
(
"(0x%08x)
\n
"
,
dwFlags
);
dwThemeAppProperties
=
dwFlags
;
}
...
...
@@ -748,7 +748,7 @@ HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
const
RECT
*
pRect
,
HRGN
hrgn
,
POINT
ptTest
,
WORD
*
pwHitTestCode
)
{
FIXME
(
"%d %d 0x%08
l
x: stub
\n
"
,
iPartId
,
iStateId
,
dwOptions
);
FIXME
(
"%d %d 0x%08x: stub
\n
"
,
iPartId
,
iStateId
,
dwOptions
);
if
(
!
hTheme
)
return
E_HANDLE
;
return
ERROR_CALL_NOT_IMPLEMENTED
;
...
...
@@ -867,7 +867,7 @@ HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName,
LPCWSTR
pszSizeName
,
HTHEMEFILE
*
hThemeFile
,
DWORD
unknown
)
{
TRACE
(
"(%s,%s,%s,%p,%
l
d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
TRACE
(
"(%s,%s,%s,%p,%d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
debugstr_w
(
pszColorName
),
debugstr_w
(
pszSizeName
),
hThemeFile
,
unknown
);
return
MSSTYLES_OpenThemeFile
(
pszThemeFileName
,
pszColorName
,
pszSizeName
,
(
PTHEME_FILE
*
)
hThemeFile
);
...
...
@@ -947,7 +947,7 @@ HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName,
{
PTHEME_FILE
pt
;
HRESULT
hr
;
TRACE
(
"(%s,%p,%
ld,%p,%l
d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
TRACE
(
"(%s,%p,%
d,%p,%
d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
pszColorName
,
dwColorNameLen
,
pszSizeName
,
dwSizeNameLen
);
...
...
@@ -1066,7 +1066,7 @@ HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName,
HRESULT
hr
;
LPWSTR
tmp
;
UINT
resourceId
=
dwColorNum
+
1000
;
TRACE
(
"(%s,%s,%
l
d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
TRACE
(
"(%s,%s,%d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
debugstr_w
(
pszSizeName
),
dwColorNum
);
hr
=
MSSTYLES_OpenThemeFile
(
pszThemeFileName
,
NULL
,
pszSizeName
,
&
pt
);
...
...
@@ -1126,7 +1126,7 @@ HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName,
HRESULT
hr
;
LPWSTR
tmp
;
UINT
resourceId
=
dwSizeNum
+
3000
;
TRACE
(
"(%s,%s,%
l
d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
TRACE
(
"(%s,%s,%d)
\n
"
,
debugstr_w
(
pszThemeFileName
),
debugstr_w
(
pszColorName
),
dwSizeNum
);
hr
=
MSSTYLES_OpenThemeFile
(
pszThemeFileName
,
pszColorName
,
NULL
,
&
pt
);
...
...
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