mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-14 13:58:04 +01:00
2fe6d6d33a
Added support for music in MDS format.
40 lines
923 B
C++
40 lines
923 B
C++
#pragma once
|
|
|
|
struct resolution_info
|
|
{
|
|
int16_t ScreenWidth;
|
|
int16_t ScreenHeight;
|
|
int16_t TableWidth;
|
|
int16_t TableHeight;
|
|
int16_t ResolutionMenuId;
|
|
};
|
|
|
|
class fullscrn
|
|
{
|
|
public:
|
|
static int screen_mode;
|
|
static int display_changed;
|
|
static const resolution_info resolution_array[3];
|
|
static float ScaleX;
|
|
static float ScaleY;
|
|
static int OffsetX;
|
|
static int OffsetY;
|
|
|
|
static void init();
|
|
static void shutdown();
|
|
static int set_screen_mode(int isFullscreen);
|
|
static void activate(int flag);
|
|
static int GetResolution();
|
|
static void SetResolution(int resolution);
|
|
static int GetMaxResolution();
|
|
static void SetMaxResolution(int resolution);
|
|
static int get_max_supported_resolution();
|
|
static int get_screen_resolution(int* width, int* height);
|
|
static void window_size_changed();
|
|
private :
|
|
static int resolution;
|
|
static int maxResolution;
|
|
|
|
static int enableFullscreen();
|
|
static int disableFullscreen();
|
|
};
|