altering vga_flushrect() to rotate display

I have altered the vga_flushrect() code in DRAW.C of devg-vga.so
to rotate the display clockwise90,
but the problem is that it does not refresh. Obviously, it is refreshing
another part of the display instead of the part that I indent.

Should I also altering some other part of the code, or am I simple
going about it the wrong way?

mk

Mike Konstan <mk@telecast.dk> wrote:

I have altered the vga_flushrect() code in DRAW.C of devg-vga.so
to rotate the display clockwise90,
but the problem is that it does not refresh. Obviously, it is refreshing
another part of the display instead of the part that I indent.

Should I also altering some other part of the code, or am I simple
going about it the wrong way?

Here’s a hint: you’ll need to swap the x and y parameters
to io-graphics, e.g. -g480x640. Also, alter the set_mode and
get_modeinfo entry points, to work with 480x640 instead of 640x480.

In any case, there will be a display rotation module in the next
Beta release, which should work with any driver.

Thanks for the hint. I would have never thought of that.
Would I be pushy if I asked when the beta release is coming?

mk

“David Donohoe” <ddonohoe@qnx.com> wrote in message
news:9c412p$4kk$1@nntp.qnx.com

Mike Konstan <> mk@telecast.dk> > wrote:
I have altered the vga_flushrect() code in DRAW.C of devg-vga.so
to rotate the display clockwise90,
but the problem is that it does not refresh. Obviously, it is
refreshing
another part of the display instead of the part that I indent.

Should I also altering some other part of the code, or am I simple
going about it the wrong way?

Here’s a hint: you’ll need to swap the x and y parameters
to io-graphics, e.g. -g480x640. Also, alter the set_mode and
get_modeinfo entry points, to work with 480x640 instead of 640x480.

In any case, there will be a display rotation module in the next
Beta release, which should work with any driver.