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
0ba1bfb0
Commit
0ba1bfb0
authored
May 05, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: DrawText gets a 32bit flag, not a 16bit flag.
parent
cfe4c7fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
static.c
dlls/user32/static.c
+14
-14
No files found.
dlls/user32/static.c
View file @
0ba1bfb0
...
...
@@ -575,7 +575,7 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
RECT
rc
;
HBRUSH
hBrush
;
HFONT
hFont
,
hOldFont
=
NULL
;
WORD
wF
ormat
;
UINT
f
ormat
;
INT
len
,
buf_size
;
WCHAR
*
text
;
...
...
@@ -584,23 +584,23 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
switch
(
style
&
SS_TYPEMASK
)
{
case
SS_LEFT
:
wF
ormat
=
DT_LEFT
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
f
ormat
=
DT_LEFT
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
break
;
case
SS_CENTER
:
wF
ormat
=
DT_CENTER
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
f
ormat
=
DT_CENTER
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
break
;
case
SS_RIGHT
:
wF
ormat
=
DT_RIGHT
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
f
ormat
=
DT_RIGHT
|
DT_EXPANDTABS
|
DT_WORDBREAK
;
break
;
case
SS_SIMPLE
:
wF
ormat
=
DT_LEFT
|
DT_SINGLELINE
;
f
ormat
=
DT_LEFT
|
DT_SINGLELINE
;
break
;
case
SS_LEFTNOWORDWRAP
:
wF
ormat
=
DT_LEFT
|
DT_EXPANDTABS
;
f
ormat
=
DT_LEFT
|
DT_EXPANDTABS
;
break
;
default:
...
...
@@ -608,23 +608,23 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
}
if
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_RIGHT
)
wFormat
=
DT_RIGHT
|
(
wF
ormat
&
~
(
DT_LEFT
|
DT_CENTER
));
format
=
DT_RIGHT
|
(
f
ormat
&
~
(
DT_LEFT
|
DT_CENTER
));
if
(
style
&
SS_NOPREFIX
)
wF
ormat
|=
DT_NOPREFIX
;
f
ormat
|=
DT_NOPREFIX
;
if
((
style
&
SS_TYPEMASK
)
!=
SS_SIMPLE
)
{
if
(
style
&
SS_CENTERIMAGE
)
wF
ormat
|=
DT_SINGLELINE
|
DT_VCENTER
;
f
ormat
|=
DT_SINGLELINE
|
DT_VCENTER
;
if
(
style
&
SS_EDITCONTROL
)
wF
ormat
|=
DT_EDITCONTROL
;
f
ormat
|=
DT_EDITCONTROL
;
if
(
style
&
SS_ENDELLIPSIS
)
wF
ormat
|=
DT_SINGLELINE
|
DT_END_ELLIPSIS
;
f
ormat
|=
DT_SINGLELINE
|
DT_END_ELLIPSIS
;
if
(
style
&
SS_PATHELLIPSIS
)
wF
ormat
|=
DT_SINGLELINE
|
DT_PATH_ELLIPSIS
;
f
ormat
|=
DT_SINGLELINE
|
DT_PATH_ELLIPSIS
;
if
(
style
&
SS_WORDELLIPSIS
)
wF
ormat
|=
DT_SINGLELINE
|
DT_WORD_ELLIPSIS
;
f
ormat
|=
DT_SINGLELINE
|
DT_WORD_ELLIPSIS
;
}
if
((
hFont
=
(
HFONT
)
GetWindowLongPtrW
(
hwnd
,
HFONT_GWL_OFFSET
)))
...
...
@@ -663,7 +663,7 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
}
else
{
DrawTextW
(
hdc
,
text
,
-
1
,
&
rc
,
wF
ormat
);
DrawTextW
(
hdc
,
text
,
-
1
,
&
rc
,
f
ormat
);
}
no_TextOut:
...
...
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