~l3kn/quad

feeba87efb793819c13511eb19bd764fbd2b6cde — Leon Rische 6 months ago 6633fe3 bw-only
Print screen size
1 files changed, 6 insertions(+), 0 deletions(-)

M quad.c
M quad.c => quad.c +6 -0
@@ 223,6 223,12 @@ int main(void) {
    return 1;
  }

  SDL_DisplayMode dm;
  SDL_GetCurrentDisplayMode(0, &dm);
  size_t width = dm.w;
  size_t height = dm.h;
  printf("%d,%d\n", dm.w, dm.h);

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