📄 drawdriver.h
字号:
#ifndef DrawDriver_H
#define DrawDriver_H
#pragma warning(disable : 4201 4214 4115)
#include <windows.h>
#pragma warning(default : 4201 4214 4115; disable : 4514 4244)
#include <crblib/inc.h>
#ifdef __cplusplus
extern "C" {
#endif
//--------------------------------------------------------------
#define DRIVER_MODE_555 (0)
#define DRIVER_MODE_565 (1)
typedef struct
{
HWND hWnd;
ubyte *Buffer;
uint Width;
uint Height;
uint Stride;
uint BytesPerPixel;
uint Mode;
uint R_shift;
uint G_shift;
uint B_shift;
uint R_mask;
uint G_mask;
uint B_mask;
uint R_width;
uint G_width;
uint B_width;
uint UserY;
} Driver_Window;
//--------------------------------------------------------------
bool DrawDriver_Startup_Closest(HANDLE hInstance, HWND hwnd, int SeekW, int SeekH );
bool DrawDriver_Startup_Dialog(HANDLE hInstance, HWND hwnd, int MinW, int MinH, int MaxW, int MaxH );
bool DrawDriver_Startup_WindowMode(HANDLE hInstance, HWND hwnd);
bool DrawDriver_Shutdown(void);
bool DrawDriver_UpdateWindow(void);
Driver_Window * DrawDriver_Lock(bool Clear);
bool DrawDriver_UnLock(void);
HWND DrawDriver_CreateStandardWindow(HANDLE instance,int w,int h);
//--------------------------------------------------------------
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -