Rockbox Development > Starting Development and Compiling
Dimensions
(1/1)
Cheater:
I have 2 questions regarding dimensions on the iPod Video. First, when I use the lcd_puts function to display a string at a certain x,y coordinate, what is the range for x? y? Second, if I modify the source in /apps/bitmaps/native and change the image for the iPod Video, what size do I need to make it so that it covers the whole screen? Do I need to modify a file to make it do that? Thanks.
Deano:
The 5G iPods have a screen dimension of: 320x240.
sharpe:
When you use lcd_puts(), it places the string relative to the current font's width
and height. So if you had a font of 6x8, using x=2, and y=2, it'd start to draw
the string at x=12, y=16.
If you want to have it placed relative to pixels and not font width/height, you
should use lcd_putsxy(), with the respective locations to start to draw
the string.
Navigation
[0] Message Index
Go to full version