Skip to content

Commit

Permalink
CLIENT-GAME: Add fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Nov 3, 2023
1 parent 6881b42 commit 9c9ac2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client/SceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Scene {
static void initRaylib()
{
Raylib::initWindow(screenWidth, screenHeight, "R-Bus");
Raylib::setWindowState(Raylib::ConfigFlags::WINDOW_RESIZABLE);
Raylib::setWindowState(Raylib::ConfigFlags::FULLSCREEN_MODE);
Raylib::setTargetFPS(Raylib::getMonitorRefreshRate(Raylib::getCurrentMonitor()));
Raylib::initAudioDevice();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Systems/Graphic/SpriteSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace Systems {

Raylib::Vector2 size = calculateSize(sprite);
sprite.drawPro(
Raylib::Rectangle(0, 0, sprite.getTextureWidth(), sprite.getTextureHeight()),
Raylib::Rectangle(0.F, 0.F, sprite.getTextureWidth(), sprite.getTextureHeight()),
Raylib::Rectangle(spritePos.x, spritePos.y, size.x, size.y),
origin,
rotation,
Expand Down

0 comments on commit 9c9ac2d

Please sign in to comment.