Skip to content

Commit 4298ac3

Browse files
committed
Fix names
1 parent 7de2942 commit 4298ac3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/SDL_test_common.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1403,8 +1403,8 @@ bool SDLTest_CommonInit(SDLTest_CommonState *state)
14031403
if (i != 0) {
14041404
char id[64];
14051405
SDL_snprintf(id, sizeof(id), "#canvas%d", i + 1);
1406-
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID, id);
1407-
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT, id);
1406+
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID_STRING, id);
1407+
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING, id);
14081408
}
14091409
#endif
14101410
} else {

test/testmultiwindow.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static TestWindow *createTestWindowAtMousePosition(SDLTest_CommonState *state)
115115

116116
props = SDL_CreateProperties();
117117
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, title);
118-
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID, title);
118+
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID_STRING, title);
119119
SDL_SetFloatProperty(props, SDL_PROP_WINDOW_CREATE_X_NUMBER, rect.x);
120120
SDL_SetFloatProperty(props, SDL_PROP_WINDOW_CREATE_Y_NUMBER, rect.y);
121121
SDL_SetFloatProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, rect.w);

0 commit comments

Comments
 (0)