backend refactor

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@683 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-11-13 02:27:31 +00:00
commit 295e685f54
14 changed files with 495 additions and 458 deletions

View file

@ -22,31 +22,25 @@
#define GET_WHEEL_DELTA_WPARAM(x) ((short)HIWORD(x))
#endif
struct _MwLL {
struct _MwLLGDI {
struct _MwLLCommon common;
HINSTANCE hInstance;
HWND hWnd;
HDC hDC;
void* user;
int copy_buffer;
HCURSOR cursor;
MwLLHandler handler;
int grabbed;
};
struct _MwLLColor {
HBRUSH brush;
struct _MwLLGDIColor {
struct _MwLLCommonColor common;
int red;
int green;
int blue;
HBRUSH brush;
};
struct _MwLLPixmap {
int width;
int height;
unsigned char* raw;
struct _MwLLGDIPixmap {
struct _MwLLCommonPixmap common;
RGBQUAD* quad;
HBITMAP hBitmap;