Return real screen size.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25215 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2010-03-16 09:52:46 +00:00
parent 70ac57b95b
commit e5210747cb

View file

@ -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;
}