-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes bg color to black on pillarboxed 4:3 on a 16:9 display and
- sets 4:3 display format for jzintv automagically (launcher file) - fixes a UI freeze bug when a mouse is attached and moved on a RPI3 when jzintv is running ref: https://retropie.org.uk/forum/topic/32433/jzintv-has-black-border-or-full-screen-color
- Loading branch information
Showing
3 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
scriptmodules/emulators/jzintv/01_rpi_hide_cursor_sdl2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/gfx/gfx_sdl2.c | ||
+++ a/gfx/gfx_sdl2.c | ||
@@ -420,7 +420,12 @@ LOCAL int gfx_setup_sdl_display | ||
/* Hide the mouse if full screen. */ | ||
/* -------------------------------------------------------------------- */ | ||
SDL_ShowCursor( | ||
+#ifndef PLAT_LINUX_RPI | ||
+ /* SDL_GetNumVideoDisplays() may return two on rpi3, thus disable */ | ||
+ /* this clause on rpi. This is not only cosmetic, it fixes the */ | ||
+ /* UI freeze (not of jzintv itself), if mouse is attached and moved.*/ | ||
SDL_GetNumVideoDisplays() == 1 && | ||
+#endif | ||
(act_wind_flags & SDL_WINDOW_FULLSCREEN) ? SDL_DISABLE : SDL_ENABLE); | ||
|
||
SDL_PumpEvents(); |
11 changes: 11 additions & 0 deletions
11
scriptmodules/emulators/jzintv/01_rpi_pillar_boxing_black_background_sdl2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/gfx/gfx_sdl2.c | ||
+++ b/gfx/gfx_sdl2.c | ||
@@ -506,7 +511,7 @@ LOCAL int gfx_flip(const gfx_t *const gfx) | ||
/* need to clear the backdrop to our border color before copying the */ | ||
/* texture to the display. */ | ||
/* -------------------------------------------------------------------- */ | ||
- SDL_SetRenderDrawColor(rend, bord_color.r, bord_color.g, bord_color.b, 255); | ||
+ SDL_SetRenderDrawColor(rend, 0, 0, 0, 255); | ||
SDL_RenderClear(rend); | ||
if (pvt->vid_enable || gfx->debug_blank) | ||
SDL_RenderCopy(rend, text, NULL, |