Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-11-10 20:19:27 +0300
committerkcgen <kcgen@users.noreply.github.com>2022-11-10 20:19:27 +0300
commiteb15b52e03f27c887cc411e542d8e815dc6968b1 (patch)
treeb5b2c19a9791d2de5e55952d5f3da0eb26d33e0d
parent8dae2ba60860d4817d04c46703a32e0358790c6c (diff)
Fix a typo when screen-capturing to handle non-OpenGL systems
-rw-r--r--src/gui/sdlmain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp
index d26c019da..3df1100a6 100644
--- a/src/gui/sdlmain.cpp
+++ b/src/gui/sdlmain.cpp
@@ -3440,7 +3440,7 @@ static std::optional<SDL_Surface *> get_rendered_surface()
// Get the SDL texture-renderer surface
// ------------------------------------
- else if (sdl.desktop.type == SCREEN_TEXTURE) {
+ if (sdl.desktop.type == SCREEN_TEXTURE) {
// Get the renderer's pixel format
SDL_RendererInfo rinfo;
if (SDL_GetRendererInfo(renderer, &rinfo) != 0) {