Changeset 22097 for branches/swt/src/user32/text.c
- Timestamp:
- May 14, 2015, 9:55:51 PM (11 years ago)
- File:
-
- 1 edited
-
branches/swt/src/user32/text.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/src/user32/text.c
r21356 r22097 6 6 */ 7 7 8 #include <stdio.h> 8 9 #include <string.h> 9 10 … … 17 18 #include "user.h" 18 19 #include "debugtools.h" 20 #include <misc.h> 19 21 20 22 #ifdef __WIN32OS2__ … … 311 313 312 314 if (!GetTextExtentPointW(hdc, line, len, &size)) return 0; 313 if (flags & DT_CENTER) x = (rect->left + rect->right - 314 size.cx) / 2; 315 else if (flags & DT_RIGHT) x = rect->right - size.cx; 315 ///__con_debug(2,"%s\n","still here?"); 316 if (flags & DT_CENTER) { 317 x = (rect->left + rect->right - size.cx) / 2; 318 __con_debug(2,"%s\n","DT_CENTER"); 319 } 320 else if (flags & DT_RIGHT) { 321 x = rect->right - size.cx; 322 __con_debug(2,"%s\n","DT_RIGHT"); 323 } 316 324 317 325 if (flags & DT_SINGLELINE)
Note:
See TracChangeset
for help on using the changeset viewer.
