mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[RTL]
- Fix Underscore drawing for Win32k and related functions. svn path=/trunk/; revision=68935
This commit is contained in:
parent
00bc01249e
commit
c10459d14a
1 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ LONG TEXT_TabbedTextOut( HDC hdc,
|
||||||
if (lpstr[j] == '\t') break;
|
if (lpstr[j] == '\t') break;
|
||||||
/* get the extent of the normal character part */
|
/* get the extent of the normal character part */
|
||||||
#ifdef _WIN32K_
|
#ifdef _WIN32K_
|
||||||
GreGetTextExtentW( hdc, (LPWSTR)lpstr + i, j - i , &extent, 1 );
|
GreGetTextExtentW( hdc, (LPWSTR)lpstr + i, j - i , &extent, 0 );
|
||||||
#else
|
#else
|
||||||
GetTextExtentPointW( hdc, lpstr + i, j - i , &extent );
|
GetTextExtentPointW( hdc, lpstr + i, j - i , &extent );
|
||||||
#endif
|
#endif
|
||||||
|
@ -1025,13 +1025,13 @@ static void TEXT_DrawUnderscore (HDC hdc, int x, int y, const WCHAR *str, int of
|
||||||
HPEN hpen;
|
HPEN hpen;
|
||||||
HPEN oldPen;
|
HPEN oldPen;
|
||||||
#ifdef _WIN32K_
|
#ifdef _WIN32K_
|
||||||
GreGetTextExtentW (hdc, (LPWSTR)str, offset, &size, 1);
|
GreGetTextExtentW (hdc, (LPWSTR)str, offset, &size, 0);
|
||||||
#else
|
#else
|
||||||
GetTextExtentPointW (hdc, str, offset, &size);
|
GetTextExtentPointW (hdc, str, offset, &size);
|
||||||
#endif
|
#endif
|
||||||
prefix_x = x + size.cx;
|
prefix_x = x + size.cx;
|
||||||
#ifdef _WIN32K_
|
#ifdef _WIN32K_
|
||||||
GreGetTextExtentW (hdc, (LPWSTR)str, offset+1, &size, 1);
|
GreGetTextExtentW (hdc, (LPWSTR)str, offset+1, &size, 0);
|
||||||
#else
|
#else
|
||||||
GetTextExtentPointW (hdc, str, offset+1, &size);
|
GetTextExtentPointW (hdc, str, offset+1, &size);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1272,7 +1272,7 @@ INT WINAPI DrawTextExWorker( HDC hdc,
|
||||||
len_seg = p - str;
|
len_seg = p - str;
|
||||||
if (len_seg != len &&
|
if (len_seg != len &&
|
||||||
#ifdef _WIN32K_
|
#ifdef _WIN32K_
|
||||||
!GreGetTextExtentW(hdc, (LPWSTR)str, len_seg, &size, 1))
|
!GreGetTextExtentW(hdc, (LPWSTR)str, len_seg, &size, 0))
|
||||||
#else
|
#else
|
||||||
!GetTextExtentPointW(hdc, str, len_seg, &size))
|
!GetTextExtentPointW(hdc, str, len_seg, &size))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue