testing displaymode output
authorMatthew Owens <matthew@owens.tech>
Fri, 2 Oct 2020 10:51:25 +0000 (11:51 +0100)
committerMatthew Owens <matthew@owens.tech>
Fri, 2 Oct 2020 10:51:25 +0000 (11:51 +0100)
src/main.c

index 237d63c..5a2d9a8 100644 (file)
@@ -225,9 +225,12 @@ int main()
        if(!init()) { return 1; }
 
        int w, h;
+       SDL_DisplayMode dm;
+       SDL_GetCurrentDisplayMode(0, &dm);
        SDL_GetRendererOutputSize(renderer, &w, &h);
-       COUT("output size: (%d, %d)", w, h);
-
+       COUT("renderer output size: (%d, %d)", w, h);
+       COUT("dm output size: (%d, %d)", dm.w, dm.h);
+       return 0;
        while(!quit) {
                update();
                render();