Skip to content

Commit e104391

Browse files
pedro-wSiegeLord
authored andcommitted
Implement UNICODE for graphics
1 parent 50b809d commit e104391

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/win/d3d_disp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*
1515
*/
1616

17-
#define UNICODE
18-
1917
#include <windows.h>
2018

2119
#include <string.h>

src/win/wgl_disp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#endif
2424
#endif
2525

26-
#define UNICODE
27-
2826
#include <windows.h>
2927

3028
#include "allegro5/allegro.h"
@@ -36,6 +34,7 @@
3634
#include "allegro5/internal/aintern_vector.h"
3735
#include "allegro5/internal/aintern_wclipboard.h"
3836
#include "allegro5/platform/aintwin.h"
37+
#include "allegro5/internal/aintern_wunicode.h"
3938

4039
#include "wgl.h"
4140

@@ -208,7 +207,7 @@ static int get_pixel_formats_count_ext(HDC dc)
208207

209208
static void display_pixel_format(ALLEGRO_EXTRA_DISPLAY_SETTINGS *eds)
210209
{
211-
ALLEGRO_INFO("Accelarated: %s\n", eds->settings[ALLEGRO_RENDER_METHOD] ? "yes" : "no");
210+
ALLEGRO_INFO("Accelerated: %s\n", eds->settings[ALLEGRO_RENDER_METHOD] ? "yes" : "no");
212211
ALLEGRO_INFO("Single-buffer: %s\n", eds->settings[ALLEGRO_SINGLE_BUFFER] ? "yes" : "no");
213212
if (eds->settings[ALLEGRO_SWAP_METHOD] > 0)
214213
ALLEGRO_INFO("Swap method: %s\n", eds->settings[ALLEGRO_SWAP_METHOD] == 2 ? "flip" : "copy");

0 commit comments

Comments
 (0)