nanogui: Thread: flipping x and y


[<<] [<] Page 1 of 1 [>] [>>]
Subject: flipping x and y
From: vikas kedia ####@####.####
Date: 20 Nov 2002 05:00:37 -0000
Message-Id: <3DD9C581.1050503@nexgenix.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??

thanx
vikas

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
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.