~l3kn/quad

f56e3b96ed70774069b9b008580f8dd4034ced50 — Leon Rische 6 months ago 9d0bd9d
print more display info
1 files changed, 4 insertions(+), 1 deletions(-)

M quad.c
M quad.c => quad.c +4 -1
@@ 230,8 230,11 @@ int main(void) {
  SDL_GetCurrentDisplayMode(0, &dm);
  printf("Current: %d,%d\n", dm.w, dm.h);

  SDL_GetDisplayMode(0, 0, &dm);
  printf("General: %d,%d\n", dm.w, dm.h);

  if (SDL_CreateWindowAndRenderer(WIDTH, HEIGHT,
                                  SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_FULLSCREEN,
                                  SDL_WINDOW_ALLOW_HIGHDPI,
                                  &window, &windowRenderer) != 0) {
    printf("Error creating window & renderer: %s\n", SDL_GetError());
    return 1;