nanogui: flipping x and y


Previous by date: 20 Nov 2002 05:19:32 -0000 flipping x and y, vikas kedia
Next by date: 20 Nov 2002 05:19:32 -0000 UPDATEREGIONS problems, 김준영
Previous in thread: 20 Nov 2002 05:19:32 -0000 flipping x and y, vikas kedia
Next in thread:

Subject: Re: [nanogui] flipping x and y
From: "Greg Haerr" ####@####.####
Date: 20 Nov 2002 05:19:32 -0000
Message-Id: <014d01c29053$55564e40$3aba46a6@xmission.com>

: if i want to flip x and y coordinates for anything that i draw what 
: routine do i change?? i am unix linux framebuffer display.
: actually the problem is that i developed my application for 320*240 
: resolution but i have to port it to 240*320. so instead of changing 
: coordinates and height width for each widget individually i thought i 
: would just modify the draw routine of microwindows so that it flips x 
: and y coordinates. i guess all the draw routines eventually calls the 
: routine to draw pixel. so i just have to change the routine to draw 
: pixel. which one is that??

The CVS version has GrSetPortraitMode that allows you
to set either left, right, up or down portrait modes, it's all
handled magically in the lower level driver routines.  The
GrSetPortraitMode call will set the server portrait mode
for all applications.

This is handled by the code in drivers/fbportrait*.c.

Regards,

Greg

Previous by date: 20 Nov 2002 05:19:32 -0000 flipping x and y, vikas kedia
Next by date: 20 Nov 2002 05:19:32 -0000 UPDATEREGIONS problems, 김준영
Previous in thread: 20 Nov 2002 05:19:32 -0000 flipping x and y, vikas kedia
Next in thread:


Powered by ezmlm-browse 0.20.