Skip to content

Commit

Permalink
chore(lab-1): clear the code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKonstantinSh committed Dec 24, 2020
1 parent a4b4e8e commit a64c1cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lab_1/Lab_1/Lab_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit a64c1cb

Please sign in to comment.