From c28969d11f16b53c50918b06dbe9e545e33ce323 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 8 Jul 2005 01:41:12 +0000 Subject: Remote LCD support for the Win32 H1x0 simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7061 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/uisw32.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'uisimulator/win32/uisw32.c') diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index fb581c0cf1..02697be443 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c @@ -182,7 +182,16 @@ LRESULT CALLBACK GUIWndProc ( 0, 0, LCD_WIDTH, LCD_HEIGHT, bitmap, (BITMAPINFO *) &bmi, DIB_RGB_COLORS, SRCCOPY); - +#ifdef HAVE_REMOTE_LCD + StretchDIBits (hDc, + UI_REMOTE_POSX * r.right / UI_WIDTH, + UI_REMOTE_POSY * r.bottom / UI_HEIGHT, + UI_REMOTE_WIDTH * r.right / UI_WIDTH, + UI_REMOTE_HEIGHT * r.bottom / UI_HEIGHT, + 0, 0, LCD_REMOTE_WIDTH, LCD_REMOTE_HEIGHT, + remote_bitmap, (BITMAPINFO *) &remote_bmi, + DIB_RGB_COLORS, SRCCOPY); +#endif EndPaint (hWnd, &ps); return TRUE; } @@ -240,7 +249,7 @@ BOOL GUIStartup () if (hGUIWnd == NULL) return FALSE; - simlcdinit(); + simlcdinit(); return TRUE; } -- cgit v1.2.3