comparison render_sdl.c @ 1881:55198fc9cc1f

Don't render lines that are cropped by overscan. Allows submitting frame earlier when bottom overscan is non-zero which can reduce latency in some cases
author Mike Pavone <pavone@retrodev.com>
date Mon, 16 Sep 2019 00:45:48 -0700
parents 4c322abd9fa5
children 33c0c4579c1f
comparison
equal deleted inserted replaced
1880:e77f7a7c79a5 1881:55198fc9cc1f
1622 uint32_t render_overscan_top() 1622 uint32_t render_overscan_top()
1623 { 1623 {
1624 return overscan_top[video_standard]; 1624 return overscan_top[video_standard];
1625 } 1625 }
1626 1626
1627 uint32_t render_overscan_bot()
1628 {
1629 return overscan_bot[video_standard];
1630 }
1631
1627 void render_wait_quit(void) 1632 void render_wait_quit(void)
1628 { 1633 {
1629 SDL_Event event; 1634 SDL_Event event;
1630 while(SDL_WaitEvent(&event)) { 1635 while(SDL_WaitEvent(&event)) {
1631 switch (event.type) { 1636 switch (event.type) {