Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Size and loading Lenna
#10
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
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 



Reply


Messages In This Thread
Display Size and loading Lenna - by mayoricecream - 04-24-2018, 07:58 PM
RE: Display Size and loading Lenna - by Brian Beuken - 04-25-2018, 07:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)