View Single Post
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#5
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
 

The Following User Says Thank You to jflatt For This Useful Post: