Skip to content

Commit

Permalink
Changed method calls to call the Singleton instead of the internal na…
Browse files Browse the repository at this point in the history
…mes.
  • Loading branch information
bXi committed Jul 28, 2024
1 parent 79c97e9 commit dc1f1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions window/windowhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void Window::_initWindow(const std::string &title, int width, int height, int sc
}
}

SDL_SetRenderDrawBlendMode(_getRenderer(), SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawBlendMode(GetRenderer(), SDL_BLENDMODE_BLEND);

if (scale > 1) {
_setScale(scale);
Expand Down Expand Up @@ -276,7 +276,7 @@ void Window::_setRenderTarget(Texture target) {

void Window::_resetRenderTarget() {
if (_scaleFactor > 1) {
_setRenderTarget(_screenBuffer);
SetRenderTarget(_screenBuffer);
} else {
SDL_SetRenderTarget(Window::GetRenderer(), nullptr);
}
Expand Down

0 comments on commit dc1f1bc

Please sign in to comment.