On Thu, 2008-10-09 at 16:33 +0200, MrMage wrote: > Hi, > > I am re-compiling Andre Stemper's gnuplot port > (http://meeting.uni.lu/andre.stemper/gnuplot.html) with cegcc and also > mingw32ce. But I would like to make that port VGA-aware (by patching the exe > file, if possible). > > I know that I can make an application VGA aware manually with ForceHires, > and Visual Studio 2008 .NET Compact Framework 2.0 executables are also > VGA-aware by default. But how to make an existing mingw32ce application > VGA-aware? Do you have some ideas?
If you add the line HI_RES_AWARE CEUX {1} to the rc file of your application, then it'll become "dpi aware" and when you execute system calls to query the screen dimensions, you'll get the right answers. Without this, you keep getting the old values (240x320 or so). This works on my PDA (which is 480x640). Is this what you were asking ? Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel