Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Dimensions
« previous next »
  • Print
Pages: [1]

Author Topic: Dimensions  (Read 4350 times)

Offline Cheater

  • Member
  • *
  • Posts: 10
Dimensions
« 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.
Logged

Offline Deano

  • Member
  • *
  • Posts: 76
Re: Dimensions
« Reply #1 on: June 06, 2006, 07:52:21 AM »
The 5G iPods have a screen dimension of: 320x240.
Logged

Offline sharpe

  • Member
  • *
  • Posts: 39
    • lightish.org
Re: Dimensions
« Reply #2 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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Dimensions
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.053 seconds with 20 queries.