View Single Post
Posts: 20 | Thanked: 6 times | Joined on Jun 2010 @ Sweden
#9
Originally Posted by jflatt View Post
Don't have environment in front of me, but what about:

preenv pdl.c
Code:
PDL_Err PDL_GetScreenMetrics(PDL_ScreenMetrics* metrics) 
{ 
        TRACE("Application asks for screen metrics; giving true ones"); 
        metrics->horizontalPixels = 480; 
        metrics->verticalPixels = 800; 
        metrics->horizontalDPI = 213; 
        metrics->verticalDPI = 183; 
        metrics->aspectRatio = 1.164; 
        return PDL_NOERROR; 
}
From Palm documentation:
Code:
outMetrics->horizontalPixels = 320; // Number of pixels horizontally
outMetrics->verticalPixels = 480;   // Number of pixels vertically          
outMetrics->horizontalDPI = 213;    // Number of pixels per inch horizontally
outMetrics->verticalDPI = 183;      // Number of pixels per inch vertically
outMetrics->aspectRatio = 1.164;    // horizontalDPI/verticalDPI
I see the pixel count was changed, but the DPI and ratio wasn't changed, surely these values are different between devices. Do they even matter at all? I can try it out in a couple days
I'm a bad programer, but I think even I could manage to change those values and re-compile, but I dont have anything to compile it with, or rather it would be faster for someone with an working dev-env to do it..

But then the question becomes "How many DPI is the N900 screen?" and "What is a good value for the AR?" It would be better to be able to have a settings-file, so you can try without all hassle. Ofc I understand that not the easiest thing to do maybw, just saying.
Oh, well, I guess it's best to leave it to the experts.