On Thu, 2008-10-09 at 17:34 +0200, Vincent Torri wrote:
> On Thu, 9 Oct 2008, Danny Backx wrote:
> > On Thu, 2008-10-09 at 16:33 +0200, MrMage wrote:
> >> 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).
> 
> I have a related question to that:
> 
> I have a library that manages the graphics and an application that uses 
> that lib. Is it sufficient to link that rc file to the library, and the 
> application will be aware of it, or must I link the app to that rc file ?

I don't know. I imagine that the answer would be different depending on
whether your library is a .lib or a .dll .

        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

Reply via email to