MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetScale

Method GetScale

Source/Window.cpp:553–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553cDimension cWindow::GetScale() const {
554 cDimension Result = GetWindowSize() / GetScreenSize();
555 if (Result.mHeight == 0)
556 Result.mHeight = 1;
557 if (Result.mWidth == 0)
558 Result.mWidth = 1;
559 return Result;
560}
561
562int cWindow::GetRefreshRate() {
563 SDL_DisplayMode mode;

Callers 2

Mouse_Cursor_HandleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected