Skip to content

Commit

Permalink
engine: platform: sdl: enumerate video modes for display where window…
Browse files Browse the repository at this point in the history
… located is instead of display zero
  • Loading branch information
OlegAckbar committed Feb 8, 2025
1 parent 8da5ad1 commit b5402f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/platform/sdl/vid_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ static void R_InitVideoModes( void )
{
char buf[MAX_VA_STRING];
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
int displayIndex = 0; // TODO: handle multiple displays somehow
SDL_Point point = { window_xpos.value, window_ypos.value };
int displayIndex = SDL_GetPointDisplayIndex( &point );
int i, modes;

num_vidmodes = 0;
Expand Down

0 comments on commit b5402f9

Please sign in to comment.