summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2010-03-16 09:52:46 +0000
committerBjörn Stenberg <bjorn@haxx.se>2010-03-16 09:52:46 +0000
commite5210747cb528e9036a6e4efeeb12241d03a5904 (patch)
tree97cae1a19dafb695aab12e6a2fc51a3d1d91bf8f /apps
parent70ac57b95b84aed377cd9105c39c7b1a6967139e (diff)
downloadrockbox-e5210747cb528e9036a6e4efeeb12241d03a5904.tar.gz
rockbox-e5210747cb528e9036a6e4efeeb12241d03a5904.tar.bz2
rockbox-e5210747cb528e9036a6e4efeeb12241d03a5904.zip
Return real screen size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25215 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/iap.c7
1 files 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;
}