diff --git a/desmume/src/windows/CWindow.h b/desmume/src/windows/CWindow.h index 3dd46ae78..7dbdbb910 100644 --- a/desmume/src/windows/CWindow.h +++ b/desmume/src/windows/CWindow.h @@ -22,6 +22,7 @@ #ifndef CWINDOW_H #define CWINDOW_H +#define WIN32_LEAN_AND_MEAN #include #include "../types.h" diff --git a/desmume/src/windows/disView.c b/desmume/src/windows/disView.c index 7af4e00f8..ec9c9e548 100644 --- a/desmume/src/windows/disView.c +++ b/desmume/src/windows/disView.c @@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include #include #include #include "../MMU.h" diff --git a/desmume/src/windows/ginfo.c b/desmume/src/windows/ginfo.c index d725bbbfe..1132d7b50 100644 --- a/desmume/src/windows/ginfo.c +++ b/desmume/src/windows/ginfo.c @@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include #include "resource.h" #include "../NDSSystem.h" #include "../MMU.h" diff --git a/desmume/src/windows/main.c b/desmume/src/windows/main.c index 76a1029ca..c4c80f6a1 100644 --- a/desmume/src/windows/main.c +++ b/desmume/src/windows/main.c @@ -23,9 +23,12 @@ //#define RENDER3D +#define WIN32_LEAN_AND_MEAN #include +#include #include #include +#include #include #include "CWindow.h" #include "../MMU.h" @@ -286,9 +289,9 @@ DWORD WINAPI run( LPVOID lpParameter) StretchDIBits (hdc, 0, 0, r.right-r.left, r.bottom-r.top, 0, 0, 256, 192*2, GPU_screen, (BITMAPINFO*)&bmi, DIB_RGB_COLORS,SRCCOPY); } else { + RECT r ; GPU_rotate(&rotationbmi); - RECT r ; - GetClientRect(hwnd,&r) ; + GetClientRect(hwnd,&r) ; StretchDIBits(hdc, 0, 0, r.right-r.left, r.bottom-r.top, 0, 0, GPU_width, rotationscanlines, GPU_screenrotated, (BITMAPINFO*)&rotationbmi, DIB_RGB_COLORS,SRCCOPY); } fpsframecount++; diff --git a/desmume/src/windows/mapView.h b/desmume/src/windows/mapView.h index 6151717c4..dd0cd20ff 100644 --- a/desmume/src/windows/mapView.h +++ b/desmume/src/windows/mapView.h @@ -22,7 +22,6 @@ #ifndef MAPVIEW_H #define MAPVIEW_H -#include #include "CWindow.h" typedef struct diff --git a/desmume/src/windows/resources.rc b/desmume/src/windows/resources.rc index dfb458142..c33b1caba 100644 --- a/desmume/src/windows/resources.rc +++ b/desmume/src/windows/resources.rc @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define WIN32_LEAN_AND_MEAN #include #include "resource.h"