SDL2 How to position a window on a second monitor?
问题 I am using SDL_SetWindowPosition to position my window. Can I use this function to position my window on another monitor? UPDATE Using SDL_GetDisplayBounds will not return the correct monitor positions when the text size is changed in Windows 10. Any ideas how to fix this? 回答1: SDL2 uses a global screen space coordinate system. Each display device has its own bounds inside this coordinate space. The following example places a window on a second display device: // enumerate displays int