diff options
author | Sam Lantinga <slouken@libsdl.org> | 2013-05-29 03:22:19 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2013-05-29 03:22:19 -0700 |
commit | 028c19b92b3d06b55fc032bf8dea20994af798de (patch) | |
tree | c3a943cf46d2f1518af09e72062f4c4791195d00 /include/SDL_test_common.h | |
parent | 23f33cb76cb931ea36dff5a3178fae75718fabb7 (diff) |
When the window is resized, the viewport is automatically reset.
This resolves lots of confusion around resizable windows. Most people don't expect a viewport to be implicitly set when the renderer is created and then not to be reset to the window size if the window is resized.
Added common test command line parameters --logical WxH and --scale N to test the render logical size and scaling APIs.
Diffstat (limited to 'include/SDL_test_common.h')
-rw-r--r-- | include/SDL_test_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/SDL_test_common.h b/include/SDL_test_common.h index 611c54334c..f07acf7c15 100644 --- a/include/SDL_test_common.h +++ b/include/SDL_test_common.h @@ -69,6 +69,9 @@ typedef struct int window_minH; int window_maxW; int window_maxH; + int logical_w; + int logical_h; + float scale; int depth; int refresh_rate; int num_windows; |