SpaceCadetPinball/SpaceCadetPinball/fullscrn.h

43 lines
1.2 KiB
C
Raw Normal View History

2020-11-06 14:56:32 +01:00
#pragma once
2020-11-16 15:12:31 +01:00
#include "maths.h"
2020-11-06 14:56:32 +01:00
#define BYTEn(x, n) (*((unsigned char*)&(x)+n))
#define BYTE1(x) BYTEn(x, 1) // byte 1 (counting from 0)
#define BYTE2(x) BYTEn(x, 2)
class fullscrn
{
public:
static int screen_mode;
static HWND hWnd;
2020-11-16 15:12:31 +01:00
static tagRECT WindowRect1, WindowRect2;
static rectangle_type WHRect;
2020-11-06 14:56:32 +01:00
static int fullscrn_flag1;
static int display_changed;
static int ChangeDisplay, SmthFullScrnFlag2;
static int trick;
2020-11-16 15:12:31 +01:00
static void init(int width, int height, int isFullscreen, HWND winHandle, HMENU menuHandle, int changeDisplay);
static void shutdown();
2020-11-06 14:56:32 +01:00
static int set_screen_mode(int isFullscreen);
2020-11-07 16:41:14 +01:00
static void force_redraw();
2020-11-16 15:12:31 +01:00
static void center_in(HWND parent, HWND child);
static int displaychange();
static void activate(int flag);
static unsigned convert_mouse_pos(unsigned int mouseXY);
2020-11-16 15:12:31 +01:00
static void getminmaxinfo(MINMAXINFO* maxMin);
static void paint();
2020-12-02 18:12:34 +01:00
static bool set_menu_mode(int menuEnabled);
2020-11-06 14:56:32 +01:00
private :
static int MenuEnabled;
static HMENU MenuHandle;
2020-11-16 15:12:31 +01:00
static void GetWindowCenter();
2020-11-06 14:56:32 +01:00
static int disableWindowFlagsDisDlg();
static int setWindowFlagsDisDlg();
static int enableFullscreen();
2020-11-16 15:12:31 +01:00
static int disableFullscreen();
static void fillRect(int right, int bottom);
2020-11-06 14:56:32 +01:00
};