1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-06-26 07:42:10 +02:00
SpaceCadetPinball/SpaceCadetPinball/fullscrn.h
Muzychenko Andrey 4c196a9290 Added table resolution and UI scale options.
gdrv: blit directly to backing store of vScreen texture.
Added missing cheat_bump_rank sub, oops.
Fixed some warnings.
2021-09-22 15:50:07 +03:00

37 lines
740 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 value);
static int GetMaxResolution();
static void window_size_changed();
private :
static int resolution;
static int enableFullscreen();
static int disableFullscreen();
};