04-25-2018, 07:40 AM
(This post was last modified: 04-25-2018, 05:19 PM by Brian Beuken.)
The Display size, is something else, I need to check that out.
and after a quick check, the early systems don't properly set up the display size to allow for full screen display, but you can add to the init_ogl function and the display will stretch to the size of your screen
and after a quick check, the early systems don't properly set up the display size to allow for full screen display, but you can add to the init_ogl function and the display will stretch to the size of your screen
Code:
state->width = width;
state->height = height;
dest_rect.x = 0;
dest_rect.y = 0;
dest_rect.width = state->width; // it needs to know our window size
dest_rect.height = state->height;
src_rect.x = 0;
src_rect.y = 0;
// ADD these two lines to allow full screen to work
src_rect.width = width << 16;
src_rect.height = height << 16;
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's