nanogui: Thread: Help with MW on Embedded Linux with Frame buffering and Images!?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Help with MW on Embedded Linux with Frame buffering and Images!?
From: Paul Chaib ####@####.####
Date: 28 May 2002 13:55:17 -0000
Message-Id: <2258DF227C3ED6118AC0009027A8F4540B143B@commodore.virtualprototypes.ca>

Hello,
 
I'm using microwindows-0.89pre8 on an MPC823E running embedded linux.  My
application needs
to be double buffered to avoid flickering.  I use GrNewPixmap and do all my
drawing in a pixmap
and at when I swap buffer I use GrCopyArea to copy the pixmap to my window.
All this is working
fine but when I introduced raster using GrDrawImageBits for some reason my
image doesn't show.
If I draw my image into the window directly instead the pixmap then I can
see my image.  Since I'm
new to microwindows  my questions are:
Is pixmap the best way to do double buffering?
If yes how can I get my raster working?
If now what is the best way to do double buffering?
Any examples would be greatly appreciated.
 
Thanks in advance and best regards,
Paul C.
Subject: Re: [nanogui] Help with MW on Embedded Linux with Frame buffering and Images!?
From: "Greg Haerr" ####@####.####
Date: 30 May 2002 01:50:24 -0000
Message-Id: <03eb01c2077a$876f0640$3aba46a6@xmission.com>

Paul,
    It sounds as though there may be a bug in the 
GrDrawImageBits function when drawing on pixmaps.
If you can prepare a simple demo program that shows this
I can help debug it. 

The method you're using sounds good and should be the
best method.  Is everything but the GrDrawImageBits
data being copied by GrCopyArea?  Perhaps the window
coordinates are off...?

Regards,

Greg

: Hello,
:  
: I'm using microwindows-0.89pre8 on an MPC823E running embedded linux.  My
: application needs
: to be double buffered to avoid flickering.  I use GrNewPixmap and do all my
: drawing in a pixmap
: and at when I swap buffer I use GrCopyArea to copy the pixmap to my window.
: All this is working
: fine but when I introduced raster using GrDrawImageBits for some reason my
: image doesn't show.
: If I draw my image into the window directly instead the pixmap then I can
: see my image.  Since I'm
: new to microwindows  my questions are:
: Is pixmap the best way to do double buffering?
: If yes how can I get my raster working?
: If now what is the best way to do double buffering?
: Any examples would be greatly appreciated.
:  
: Thanks in advance and best regards,
: Paul C.
: 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.