Added SDL_GetDisplayName(), with implementation for Mac OS X
This commit is contained in:
parent
5e519b21ed
commit
ce28a79602
5 changed files with 49 additions and 2 deletions
|
@ -83,11 +83,11 @@ main(int argc, char *argv[])
|
|||
if (event.window.event == SDL_WINDOWEVENT_MOVED) {
|
||||
SDL_Window *window = SDL_GetWindowFromID(event.window.windowID);
|
||||
if (window) {
|
||||
printf("Window %d moved to %d,%d (display %d)\n",
|
||||
printf("Window %d moved to %d,%d (display %s)\n",
|
||||
event.window.windowID,
|
||||
event.window.data1,
|
||||
event.window.data2,
|
||||
SDL_GetWindowDisplayIndex(window));
|
||||
SDL_GetDisplayName(SDL_GetWindowDisplayIndex(window)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue