From e5210747cb528e9036a6e4efeeb12241d03a5904 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 16 Mar 2010 09:52:46 +0000 Subject: Return real screen size. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25215 a1c6a512-1295-4272-9138-f99709370657 --- apps/iap.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/iap.c b/apps/iap.c index 3075db90fa..33c84c759b 100644 --- a/apps/iap.c +++ b/apps/iap.c @@ -766,10 +766,13 @@ void iap_handlepkt(void) iap_send_pkt(data, sizeof(data)); break; } - /* Get Max Screen Size for Picture Upload??? */ + /* Get Screen Size */ case 0x0033: { - unsigned char data[] = {0x04, 0x00, 0x34, 0x01, 0x36, 0x00, 0xA8, 0x01}; + unsigned char data[] = {0x04, 0x00, 0x34, + LCD_WIDTH >> 8, LCD_WIDTH & 0xff, + LCD_HEIGHT >> 8, LCD_HEIGHT & 0xff, + 0x01}; iap_send_pkt(data, sizeof(data)); break; } -- cgit v1.2.3