make menu bar disappear + change way scaling works

This commit is contained in:
CocoSimone
2023-02-10 14:22:00 +01:00
parent 0954bb23b1
commit 5d35fb229f
9 changed files with 71 additions and 73 deletions

View File

@@ -9,8 +9,8 @@ static SDL_Window* g_Window;
class ParallelRdpWindowInfo {
public:
struct CoordinatePair {
int x;
int y;
float x;
float y;
};
virtual CoordinatePair get_window_size() = 0;
virtual ~ParallelRdpWindowInfo() = default;
@@ -20,7 +20,7 @@ class SDLParallelRdpWindowInfo : public ParallelRdpWindowInfo {
CoordinatePair get_window_size() {
int width, height;
SDL_GetWindowSize(g_Window, &width, &height);
return CoordinatePair{ width, height };
return CoordinatePair{ static_cast<float>(width), static_cast<float>(height) };
}
};