summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/win32/lcd-win32.c16
-rw-r--r--uisimulator/win32/thread-win32.c3
-rw-r--r--uisimulator/win32/uisw32.c7
3 files changed, 19 insertions, 7 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c
index 2eef2d5..510117e 100644
--- a/uisimulator/win32/lcd-win32.c
+++ b/uisimulator/win32/lcd-win32.c
@@ -32,11 +32,15 @@ char bitmap[LCD_HEIGHT][LCD_WIDTH]; // the ui display
BITMAPINFO2 bmi =
{
- sizeof (BITMAPINFOHEADER),
- LCD_WIDTH, -LCD_HEIGHT, 1, 8,
- BI_RGB, 0, 0, 0, 2, 2,
- UI_LCD_BGCOLOR, 0, // green background color
- UI_LCD_BLACK, 0 // black color
+ {sizeof (BITMAPINFOHEADER),
+ LCD_WIDTH, -LCD_HEIGHT, 1, 8,
+ BI_RGB, 0, 0, 0, 2, 2,
+ },
+ {
+ {UI_LCD_BGCOLOR, 0}, // green background color
+ {UI_LCD_BLACK, 0} // black color
+ }
+
}; // bitmap information
@@ -76,4 +80,4 @@ void lcd_backlight (
}
InvalidateRect (hGUIWnd, NULL, FALSE);
-} \ No newline at end of file
+}
diff --git a/uisimulator/win32/thread-win32.c b/uisimulator/win32/thread-win32.c
index 2ad356c..c2e9cef 100644
--- a/uisimulator/win32/thread-win32.c
+++ b/uisimulator/win32/thread-win32.c
@@ -36,6 +36,9 @@ int create_thread(void* fp, void* sp, int stk_size)
{
DWORD dwThreadID;
+ (void)sp;
+ (void)stk_size;
+
if (nThreads == 256)
return -1;
diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c
index a491dec..5f1dff8 100644
--- a/uisimulator/win32/uisw32.c
+++ b/uisimulator/win32/uisw32.c
@@ -51,7 +51,6 @@ LRESULT GUIWndProc (
)
{
static HBITMAP hBkgnd;
- static lpBmp [UI_WIDTH * UI_HEIGHT * 3];
static HDC hMemDc;
switch (uMsg)
@@ -290,6 +289,12 @@ int WINAPI WinMain (
)
{
DWORD dwThreadID;
+
+ (void)hInstance;
+ (void)hPrevInstance;
+ (void)lpCmd;
+ (void)nShowCmd;
+
if (!GUIStartup ())
return 0;