Re: FVWM: Stretching Pixmaps

From: Dan Espen <dane_at_mk.bellcore.com>
Date: Mon, 21 Dec 1998 16:11:22 -0500

John Anderson <cobalt_at_themes.org> writes:
> Hey there,
>
> I have looked through the man pages extensively, and haven't found any
> references to being able to stretch pixmaps, like in the titlebar. Is
> there any way to do this? If not, I think it is a feature that is
> really needed.

My first reaction was, "Oh no, not more bloat!". Then I looked in
rxvt to see how it's done there:

        temp=XCreatePixmap(Xdisplay,TermWin.vt,
                           szHint.width,orig_att.height,
                           DefaultDepth(Xdisplay,0));
        gc=XCreateGC(Xdisplay,TermWin.vt,(unsigned long)0,&gcvals);
        ox=0;
        for(rx=0;rx<szHint.width;rx++) {
          XCopyArea(Xdisplay,orig_pixmap,temp,gc,
                    (int)ox,0,1,orig_att.height,rx,0);
          ox+=((double)orig_att.width/(double)szHint.width);
        }
        ox=0;
        for(rx=0;rx<szHint.height;rx++) {
          XCopyArea(Xdisplay,temp,bg_pixmap,gc,
                    0,(int)ox,szHint.width,1,0,rx);
          ox+=((double)orig_att.height/(double)szHint.height);
        }

Only the code starting at "XCreateGC" is additional. I left in the
"XCreatePixmap" to give some context. Not really that bad.

Right now, the only things going into fvwm2 are changes that will help
us release a stable 2.2. After that, who knows?

You might consider entering an enhancement request thru Jitterbug.

Of course, patches are better than requests.

> Thanks,
> Cobalt (John Anderson)

--
Dan Espen                                Phone: (732) 699-5570
444 Hoes Lane  Room RRC 1C-214           E-mail: dane_at_mk.bellcore.com
Piscataway, NJ 08854
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Dec 21 1998 - 15:12:25 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST