Skip to content

Commit

Permalink
Fixed sdl_hardware renderer not clearing top/bottom for tall windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkster committed Sep 3, 2018
1 parent a60c1cb commit 7f555da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Flare v1.07 (WIP, link soon)
Flare v1.08 (WIP)

Engine fixes:

* Fixed sdl_hardware renderer not clearing top/bottom for tall windows.



Flare v1.07 (http:https://flarerpg.org/index.php/2018/08/31/flare-1-07/)

Engine features:

Expand Down
4 changes: 3 additions & 1 deletion src/SDLHardwareRenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,10 @@ void SDLHardwareRenderDevice::drawRectangle(const Point& p0, const Point& p1, co
}

void SDLHardwareRenderDevice::blankScreen() {
SDL_SetRenderTarget(renderer, texture);
SDL_SetRenderDrawColor(renderer, background_color.r, background_color.g, background_color.b, background_color.a);
SDL_SetRenderTarget(renderer, NULL);
SDL_RenderClear(renderer);
SDL_SetRenderTarget(renderer, texture);
SDL_RenderClear(renderer);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see http:https://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 7, 0);
Version VersionInfo::ENGINE(1, 7, 1);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit 7f555da

Please sign in to comment.