View unanswered posts | View active topics It is currently Tue Jun 19, 2018 8:51 pm



Reply to topic  [ 5 posts ] 
 A way to distinguish DS version? 
Author Message

Joined: Wed Jan 05, 2011 6:36 pm
Posts: 5
Please, tell me, it's important.
I have this relict which works but since there are other versions now I need an update.
#define PM_DSLITE_REG (4)
#define PM_IS_LITE BIT(6)
if((readPowerManagement(PM_DSLITE_REG) & PM_IS_LITE)) //Lite
else //Phat
And if there's a facility to do this from ARM9 code, it would be better!


Sat Feb 05, 2011 7:28 am
Profile
Online
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1266
Location: UK
Actually, no, this isn't important. If you think it is then you're doing something wrong.

Well written homebrew should never need to care about which particular DS model it's running on.

_________________
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog


Sat Feb 05, 2011 12:36 pm
Profile ICQ WWW

Joined: Wed Jan 05, 2011 6:36 pm
Posts: 5
Well I'm writing an ebook reader with subpixel font rendering and screens of different DS versions have different subpixel alighnment (RGB / BGR).
I added an option to change rendering manually but users are still getting confused and read blurred text.
Is this good enough point to ask for a couple of lines of code?


Sat Feb 05, 2011 1:15 pm
Profile
Online
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1266
Location: UK
The subpixel alignment seems to depend more on time of manufacture and whether or not the LCD has been replaced than any particular model, unfortunately it's not as simple as phat vs lite. Do you have some test code that will show the difference by any chance? It might be worth checking DSi & DSiXL too but I'm really not convinced you could do much better than provide a means to switch the rendering while viewing text.

_________________
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog


Sat Feb 05, 2011 3:15 pm
Profile ICQ WWW

Joined: Wed Jan 05, 2011 6:36 pm
Posts: 5
Thanks for willing to help! I don't think that a lot of people replace their screens, and that worked for moonshell back when there were only Phat and Lite. To see the difference you could just download the whole reader. It's located at http://code.google.com/p/ikureader/ . There's a button called "Sharpness" in the menu, there you can swap the subpixels.


Fri Feb 11, 2011 8:08 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads