nanogui: Thread: nanowm question..


[<<] [<] Page 1 of 1 [>] [>>]
Subject: nanowm question..
From: "LC. Chang" ####@####.####
Date: 5 Jan 2001 07:38:01 -0000
Message-Id: <3A557C0E.2887D71F@sis.com.tw>

Hi,

I need to keep my desktop area(root window) in an image buffer
 and redraw it when necessary. Is there an effective way for doing
this?
I currently use GrReadArea() to keep it in a buffer, and GrArea()
to an offscreen pixmap. Then use GrCopyArea to put it back when
neccessary. But I find it only works for 8bpp and 32bpp under linux
frame buffer when I compile with "MWPF_TRUECOLOR0888".
If I compile with "MWPF_TRUECOLOR565" and run it under 16bpp
, it waits a long time before I can move my mouse. Why?
Is there some way working and no need for recompilation?

,L.C. Chang

Subject: Re: nanowm question..
From: Alex Holden ####@####.####
Date: 5 Jan 2001 10:21:39 -0000
Message-Id: <Pine.LNX.4.04.10101051016030.633-100000@hyperspace.linuxhacker.org>

On Fri, 5 Jan 2001, LC. Chang wrote:
> I need to keep my desktop area(root window) in an image buffer
>  and redraw it when necessary. Is there an effective way for doing
> this?

Wait for the next release of microwindows. I added support for windows
(including the root window) to have a background pixmap, which can be
placed in the upper left corner of the window, centred, or tiled. It is
automatically redrawn by the server so the client can just set the
background and forget about it (the new launcher application I wrote uses
this to provide a desktop background image facility).

-- 
------- Alex Holden -------
http://www.linuxhacker.org/
 http://www.robogeeks.org/

Subject: Re: nanowm question..
From: Jordan Crouse ####@####.####
Date: 5 Jan 2001 14:40:14 -0000
Message-Id: <3A55DDAF.4A461C8A@censoft.com>

Or just use a GrPixmap, which is useful when you need more control over
the system than the server can afford you.

Jordan

Alex Holden wrote:
> 
> On Fri, 5 Jan 2001, LC. Chang wrote:
> > I need to keep my desktop area(root window) in an image buffer
> >  and redraw it when necessary. Is there an effective way for doing
> > this?
> 
> Wait for the next release of microwindows. I added support for windows
> (including the root window) to have a background pixmap, which can be
> placed in the upper left corner of the window, centred, or tiled. It is
> automatically redrawn by the server so the client can just set the
> background and forget about it (the new launcher application I wrote uses
> this to provide a desktop background image facility).
> 
> --
> ------- Alex Holden -------
> http://www.linuxhacker.org/
>  http://www.robogeeks.org/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
Subject: Re: nanowm question..
From: "Greg Haerr" ####@####.####
Date: 5 Jan 2001 18:00:46 -0000
Message-Id: <05a801c07742$d46f6170$6817dbd0@censoft.com>

: But I find it only works for 8bpp and 32bpp under linux
: frame buffer when I compile with "MWPF_TRUECOLOR0888".
: If I compile with "MWPF_TRUECOLOR565" and run it under 16bpp
: , it waits a long time before I can move my mouse. Why?

There is special-cased code for 16bpp in src/engine/devdraw.c,
function GdArea.  You might want to comment that code out
and see what that brings you.

Regards,

Greg


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


Powered by ezmlm-browse 0.20.