Commit Graph

27 Commits

Author SHA1 Message Date
Huw Davies ddc1658501 user32: Use MB_USEGLYPHCHARS in OemToCharBuffW().
OemToCharBuffA() is more complicated and looks like it will require a
custom table, so that is left as is.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:29:54 +09:00
Dmitry Timoshkov 59ba31d1fc user32: Properly handle invalid parameters in CharToOem[Buff]W and OemToChar[Buff]W.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:12 +09:00
Dmitry Timoshkov 80d655ca75 user32: Properly handle invalid parameters in CharToOem[Buff]A and OemToChar[Buff]A.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 20:12:09 +09:00
Michael Stefaniuc c03ccff2ba user32/tests: Finish the move to use wine_dbgstr_rect().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc 827cd8f332 user32/tests: Use the stricter !IsRectEmpty() check.
The EMPTY macro is much stricter than IsRectEmpty() as it checks for
zero heigth AND width aka rect has the size of a point.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc 4730f4fffb user32/tests: Remove some old broken behavior.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-21 00:23:56 +09:00
Michael Stefaniuc 7f5adb69cd user32/tests: Use wine_dbgstr_rect() to print RECTs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:21 +09:00
Alistair Leslie-Hughes 84d0c4f0da user32: Don't crash in DrawTextEx when tab length is zero.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 21:28:09 +09:00
Michael Stefaniuc 3a74fd3f72 user32/tests: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 22:29:03 +09:00
Andrew Eikum c465209cc1 user32: Use font default height if GetTextExtentPoint returns empty rectangle.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 21:32:56 +09:00
Henri Verbeet f25317a608 user32: Ensure at least one character is used in TEXT_WordBreak(). 2014-06-13 10:12:12 +02:00
Henri Verbeet ec66785f02 user32: Fix TEXT_WordBreak() when no characters fit. 2014-03-11 19:39:35 +01:00
Dmitry Timoshkov 4734bd9edb user32/tests: Fix text drawing tests compilation with __WINESRC__ defined. 2013-10-24 10:44:56 +02:00
Austin English 5e941f89c2 user32/tests: Remove win9x hacks. 2011-07-28 19:57:32 +02:00
Tim Hentenaar a415974b2e user32: GetTabbedTextExtent() returns non-zero value when nCount == 0. 2011-04-27 13:15:00 +02:00
Vincent Povirk d1099eb4d8 user32: Invert y in DrawTextEx in GM_COMPATIBLE mode if y increases up. 2009-09-28 12:37:20 +02:00
Gerald Pfeifer bb902d6810 user32/tests: Remove unused SAME macro. 2009-05-29 11:27:05 +02:00
Gerald Pfeifer 551892b071 user32/tests: Fix MODIFIED macro. 2009-05-25 14:25:42 +02:00
Ulrich Czekalla 209820c428 user32: Don't scale draw text margin params by character width units.
Values passed in DRAWTEXTPARAMS are already in average character width
units.
2009-02-03 12:39:59 +01:00
Francois Gouget 72cf4f3b0d Assorted spelling fixes. 2008-10-20 11:37:27 +02:00
Aric Stewart e0edc233af user32: Update DrawText tests to cover behavior differences on win98. 2008-10-16 11:40:02 +02:00
Aric Stewart 48ad706c08 user32: DrawText handling of 0 counts with string, empty strings and -1 counts with empty string and NULL strings. 2008-10-14 13:41:57 +02:00
Paul Vriens 4ac4401c41 user32/tests: Don't crash on NT4. 2008-10-09 13:14:44 +02:00
Alexandre Julliard 2b1c4ba138 user32/tests: Fix some test failures on win9x. 2008-08-05 14:09:33 +02:00
Lei Zhang bab3d82bcf user32: Add more DrawText tests. 2008-03-28 09:50:32 +01:00
Dmitry Timoshkov f097da9f83 user32: Add a simple DrawState test, make it pass under Wine. 2007-01-11 12:05:45 +01:00
Alexandre Julliard b8a2e3b8a4 user32: Renamed the user/ directory to user32. 2006-11-16 14:49:25 +01:00