2020-11-06 13:56:32 +00:00
|
|
|
#pragma once
|
2021-02-06 13:53:47 +00:00
|
|
|
|
|
|
|
struct resolution_info
|
|
|
|
{
|
2021-02-16 16:03:45 +00:00
|
|
|
int16_t ScreenWidth;
|
|
|
|
int16_t ScreenHeight;
|
|
|
|
int16_t TableWidth;
|
|
|
|
int16_t TableHeight;
|
|
|
|
int16_t ResolutionMenuId;
|
2021-02-06 13:53:47 +00:00
|
|
|
};
|
|
|
|
|
2020-11-06 13:56:32 +00:00
|
|
|
class fullscrn
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static int screen_mode;
|
|
|
|
static int display_changed;
|
2021-02-06 13:53:47 +00:00
|
|
|
static const resolution_info resolution_array[3];
|
2021-02-09 15:09:44 +00:00
|
|
|
static float ScaleX;
|
|
|
|
static float ScaleY;
|
2021-09-05 07:47:05 +00:00
|
|
|
static int OffsetX;
|
|
|
|
static int OffsetY;
|
2020-11-06 13:56:32 +00:00
|
|
|
|
2021-09-05 07:47:05 +00:00
|
|
|
static void init();
|
2020-11-16 14:12:31 +00:00
|
|
|
static void shutdown();
|
2020-11-06 13:56:32 +00:00
|
|
|
static int set_screen_mode(int isFullscreen);
|
2020-11-16 14:12:31 +00:00
|
|
|
static void activate(int flag);
|
2021-02-06 13:53:47 +00:00
|
|
|
static int GetResolution();
|
2021-09-14 12:33:18 +00:00
|
|
|
static void SetResolution(int value);
|
2021-02-06 13:53:47 +00:00
|
|
|
static int GetMaxResolution();
|
2021-02-09 15:09:44 +00:00
|
|
|
static void window_size_changed();
|
2020-11-06 13:56:32 +00:00
|
|
|
private :
|
2021-02-06 13:53:47 +00:00
|
|
|
static int resolution;
|
2020-11-16 14:12:31 +00:00
|
|
|
|
2020-11-06 13:56:32 +00:00
|
|
|
static int enableFullscreen();
|
2020-11-16 14:12:31 +00:00
|
|
|
static int disableFullscreen();
|
2020-11-06 13:56:32 +00:00
|
|
|
};
|