diff --git a/Lab_1/Lab_1/Lab_1.cpp b/Lab_1/Lab_1/Lab_1.cpp index ab2405b..c6d89f2 100644 --- a/Lab_1/Lab_1/Lab_1.cpp +++ b/Lab_1/Lab_1/Lab_1.cpp @@ -5,7 +5,7 @@ #define WM_UPDATE_SPRITE (WM_USER) #define WM_LOAD_DEFAULT_SPRITE (WM_USER + 1) -#define BACKGROUND_COLOR COLOR_WINDOW +#define BACKGROUND_COLOR COLOR_WINDOW + 21 constexpr auto WINDOW_NAME = "Lab_1"; constexpr auto SPRITE_STEP = 10; @@ -19,8 +19,6 @@ ATOM RegisterWindowClass(HINSTANCE); BOOL InitWindowInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); -HINSTANCE _hInstance; - bool PostLoadDefaultSpriteMessage(HWND hWnd, HINSTANCE hInstance) { return PostMessage(hWnd, WM_LOAD_DEFAULT_SPRITE, NULL, (LPARAM)hInstance);