From ff5fcec431c67ea548d8666232d842ca9c26f865 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sun, 28 Oct 2018 12:41:08 +0100 Subject: [PATCH] raise version number --- ddraw.rc | 2 +- src/main.c | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ddraw.rc b/ddraw.rc index 5f4b0d0..2c277d6 100644 --- a/ddraw.rc +++ b/ddraw.rc @@ -2,7 +2,7 @@ #define vxstr(a,b,c,d) str(a##.##b##.##c##.##d) #define str(s) #s -#define VERSION 1,2,2,4 +#define VERSION 1,2,2,5 1 VERSIONINFO FILEVERSION VERSION diff --git a/src/main.c b/src/main.c index 15c71d6..2eab968 100644 --- a/src/main.c +++ b/src/main.c @@ -790,11 +790,17 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WMSZ_TOPRIGHT: case WMSZ_BOTTOMRIGHT: case WMSZ_RIGHT: - windowrc->right += ddraw->width - clientrc.right; break; + { + windowrc->right += ddraw->width - clientrc.right; + break; + } case WMSZ_TOPLEFT: case WMSZ_BOTTOMLEFT: case WMSZ_LEFT: - windowrc->left -= ddraw->width - clientrc.right; break; + { + windowrc->left -= ddraw->width - clientrc.right; + break; + } } } @@ -806,13 +812,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WMSZ_BOTTOMRIGHT: case WMSZ_BOTTOM: { - windowrc->bottom += ddraw->height - clientrc.bottom; break; + windowrc->bottom += ddraw->height - clientrc.bottom; + break; } case WMSZ_TOPLEFT: case WMSZ_TOPRIGHT: case WMSZ_TOP: { - windowrc->top -= ddraw->height - clientrc.bottom; break; + windowrc->top -= ddraw->height - clientrc.bottom; + break; } } }