Skip to content

Commit

Permalink
Merge pull request Rubberduckycooly#81 from plotasse/o2videofix
Browse files Browse the repository at this point in the history
Fix video rendering on -O2
  • Loading branch information
Rubberduckycooly committed Feb 6, 2021
2 parents c8165e6 + 0fee1d4 commit 5bed1fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SonicCDDecomp/Drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void RenderRenderDevice()

#if RETRO_USING_SDL2
SDL_Rect *destScreenPos = NULL;
SDL_Rect destScreenPos_scaled;
SDL_Rect destScreenPos_scaled, destScreenPosRect;
SDL_Texture *texTarget = NULL;
// allows me to disable it to prevent blur on resolutions that match only on 1 axis
bool tmpEnhancedScaling = Engine.enhancedScaling;
Expand All @@ -184,7 +184,6 @@ void RenderRenderDevice()
if (!tmpEnhancedScaling) {
// everything here remains the same except for assinging the rect to the switching pointer.
// the pointer has to be NULL when using enhanced scaling, or else the screen will be black.
SDL_Rect destScreenPosRect;
destScreenPosRect.x = 0;
destScreenPosRect.y = 0;
destScreenPosRect.w = SCREEN_XSIZE;
Expand Down

0 comments on commit 5bed1fc

Please sign in to comment.