aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 13:54:13 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-22 13:54:13 +0100
commit385f19a8c896ec126c569f1e5337d6d370d20517 (patch)
treebdadcca9c504176ada3ba4ef8e9754df8042e52e /src/crepe/facade/SDLContext.h
parentad0dcad1f11d698abf71bf69fb0927c26298d253 (diff)
working aspect ratio in world units. and add pillarboxing/letterboxing depending on ratio
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index 841ffc9..45bbda6 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -133,7 +133,7 @@ private:
* \brief sets the background of the camera (will be adjusted in future PR)
* \param camera Reference to the Camera object.
*/
- void set_camera(const Camera & camera);
+ void set_camera(Camera & camera);
private:
/**
@@ -164,7 +164,7 @@ private:
std::unique_ptr<SDL_Renderer, std::function<void(SDL_Renderer *)>> game_renderer;
//! viewport for the camera window
- SDL_Rect viewport = {0, 0, 640, 480};
+ SDL_Rect viewport = {0, 0, 1280, 720};
};
} // namespace crepe