summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-03 15:09:47 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-03 15:09:47 +0300
commit3bb56d20306db3c9742b19cd96d3fc4104b48065 (patch)
tree74d8dce96242ec507b167232c4528cc2120d494b /src/ui/window.c
parent0b9732ed9f8dcf9729c9dfb0d3850969563812e5 (diff)
Window: Print more renderer info
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 69730445..b7b4a8fd 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -475,7 +475,15 @@ void init_Window(iWindow *d, iRect rect) {
475 /* Some info. */ { 475 /* Some info. */ {
476 SDL_RendererInfo info; 476 SDL_RendererInfo info;
477 SDL_GetRendererInfo(d->render, &info); 477 SDL_GetRendererInfo(d->render, &info);
478 printf("[window] renderer: %s\n", info.name); 478 printf("[window] renderer: %s%s\n", info.name,
479 info.flags & SDL_RENDERER_ACCELERATED ? " (accelerated)" : "");
480 printf("[window] max texture size: %d x %d\n",
481 info.max_texture_width,
482 info.max_texture_height);
483 for (size_t i = 0; i < info.num_texture_formats; ++i) {
484 printf("[window] supported texture format: %s\n", SDL_GetPixelFormatName(
485 info.texture_formats[i]));
486 }
479 } 487 }
480 drawBlank_Window_(d); 488 drawBlank_Window_(d);
481 d->uiScale = initialUiScale_; 489 d->uiScale = initialUiScale_;