[nostalgia/core] Make display size function return common::Size instead of common::Point
This commit is contained in:
@@ -108,7 +108,7 @@ int getScreenHeight(Context*) {
|
||||
return 160;
|
||||
}
|
||||
|
||||
common::Point getScreenSize(Context*) {
|
||||
common::Size getScreenSize(Context*) {
|
||||
return {240, 160};
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <ox/std/types.hpp>
|
||||
#include <nostalgia/common/point.hpp>
|
||||
#include <nostalgia/common/size.hpp>
|
||||
|
||||
#include "color.hpp"
|
||||
#include "context.hpp"
|
||||
@@ -80,7 +80,7 @@ int getScreenWidth(Context *ctx);
|
||||
|
||||
int getScreenHeight(Context *ctx);
|
||||
|
||||
common::Point getScreenSize(Context *ctx);
|
||||
common::Size getScreenSize(Context *ctx);
|
||||
|
||||
[[nodiscard]]
|
||||
uint8_t bgStatus(Context *ctx);
|
||||
|
||||
@@ -66,7 +66,7 @@ int getScreenHeight(Context *ctx) {
|
||||
return y;
|
||||
}
|
||||
|
||||
common::Point getScreenSize(Context *ctx) {
|
||||
common::Size getScreenSize(Context *ctx) {
|
||||
auto id = ctx->windowerData<SdlImplData>();
|
||||
int x = 0, y = 0;
|
||||
SDL_GetWindowSize(id->window, &x, &y);
|
||||
|
||||
Reference in New Issue
Block a user