From a64c1cbd3fc5e96fccd85dc600c41ad8d8df9126 Mon Sep 17 00:00:00 2001 From: Shulga Konstantin Date: Thu, 24 Dec 2020 21:07:47 +0300 Subject: [PATCH] chore(lab-1): clear the code --- Lab_1/Lab_1/Lab_1.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);