aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp14
-rw-r--r--melonDS.depend2
2 files changed, 11 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 31716bc..909ac65 100644
--- a/main.cpp
+++ b/main.cpp
@@ -141,11 +141,16 @@ LRESULT CALLBACK derpo(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
}
return 0;
- /*case WM_PAINT:
+ case WM_PAINT:
{
+ PAINTSTRUCT partisocialiste;
+ HDC dc = BeginPaint(window, &partisocialiste);
+ SetDIBitsToDevice(dc, 0, 0, 256, 384, 0, 0, 0, 384, GPU::Framebuffer, (BITMAPINFO*)&bmp, DIB_RGB_COLORS);
+
+ EndPaint(window, &partisocialiste);
}
- return 0;*/
+ return 0;
}
return DefWindowProc(window, msg, wparam, lparam);
@@ -230,8 +235,9 @@ int main()
NDS::RunFrame();
- HDC dc = GetDC(melon);
- SetDIBitsToDevice(dc, 0, 0, 256, 384, 0, 0, 0, 384, GPU::Framebuffer, (BITMAPINFO*)&bmp, DIB_RGB_COLORS);
+ //HDC dc = GetDC(melon);
+ //SetDIBitsToDevice(dc, 0, 0, 256, 384, 0, 0, 0, 384, GPU::Framebuffer, (BITMAPINFO*)&bmp, DIB_RGB_COLORS);
+ InvalidateRect(melon, NULL, false);
UpdateWindow(melon);
nframes++;
diff --git a/melonDS.depend b/melonDS.depend
index e9b21c4..c6090ec 100644
--- a/melonDS.depend
+++ b/melonDS.depend
@@ -10,7 +10,7 @@
1481161027 c:\documents\sources\melonds\types.h
-1486312246 source:c:\documents\sources\melonds\nds.cpp
+1486333824 source:c:\documents\sources\melonds\nds.cpp
<stdio.h>
<string.h>
"NDS.h"