Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Cheater on June 06, 2006, 07:48:33 AM

Title: Dimensions
Post by: Cheater on June 06, 2006, 07:48:33 AM
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.
Title: Re: Dimensions
Post by: Deano on June 06, 2006, 07:52:21 AM
The 5G iPods have a screen dimension of: 320x240.
Title: Re: Dimensions
Post by: sharpe on June 06, 2006, 01:27:47 PM
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.