-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fixes jzintv background color to black on pillar boxed 4:3 emulator output and 16:9 displays #3507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Gemba
wants to merge
1
commit into
RetroPie:master
Choose a base branch
from
Gemba:fb_jzintv_16_to_9_bg_fix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+86
−11
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 | ||
cmitu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
+++ 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, |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.