diff options
author | Erik Faye-Lund <[email protected]> | 2020-06-01 17:45:23 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-20 06:51:54 +0000 |
commit | e6fa8ed96854f56abfae92f69b85644289ba6aa4 (patch) | |
tree | 1dc631aaabab05ed1b0a24c383936078f2c9c0dd | |
parent | eda684142050cf54b86f62e147edee921c65fa7e (diff) |
graw/gdi: do not depend on UNICODE macro
Similar to the previous patch, we currently depend on the UNICODE macro
not being set, but it sometimes ends up getting set after all.
Unlike the previous patch, the easier thing to do here, is to lean into
the Unicode wrappers, and use the TEXT()-macro to define a Unicode
or ASCII literal, depending on the setting of the UNICODE macro.
Acked-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5497>
-rw-r--r-- | src/gallium/targets/graw-gdi/graw_gdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/targets/graw-gdi/graw_gdi.c b/src/gallium/targets/graw-gdi/graw_gdi.c index aa75c73b980..a24841c8fd6 100644 --- a/src/gallium/targets/graw-gdi/graw_gdi.c +++ b/src/gallium/targets/graw-gdi/graw_gdi.c @@ -87,7 +87,7 @@ graw_create_window_and_screen(int x, wc.cbSize = sizeof wc; wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = window_proc; - wc.lpszClassName = "graw-gdi"; + wc.lpszClassName = TEXT("graw-gdi"); wc.hInstance = GetModuleHandle(NULL); wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(NULL, IDC_ARROW); |