Skip to content

Commit

Permalink
Fixed bug 3519 - SDL_GetDisplayMode fails to report mode.format when …
Browse files Browse the repository at this point in the history
…using Wayland backend

Ryan C. Gordon

Kristian says you can't do it with Wayland, and that going forward, it'll just handle whatever you throw at it anyhow.

https://twitter.com/hoegsberg/status/816148272402165761

So I say we mark it SDL_PIXELFORMAT_RGB888, which is what my X11 display currently reports, and leave it at that.
  • Loading branch information
slouken committed Jan 3, 2017
1 parent 2e2572a commit d359180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/wayland/SDL_waylandvideo.c
Expand Up @@ -221,6 +221,7 @@ display_handle_mode(void *data,
SDL_DisplayMode mode;

SDL_zero(mode);
mode.format = SDL_PIXELFORMAT_RGB888;
mode.w = width;
mode.h = height;
mode.refresh_rate = refresh / 1000; // mHz to Hz
Expand Down

0 comments on commit d359180

Please sign in to comment.