Re: TWM: truetype support

2007-11-08 Thread Eeri Kask
Mike Russo wrote:
> Hey dude - thanks for spending some time on twm and making it look
> good. Any chance you might upload a gzipped Linux/x86 binary?  :)


Hey I have a better idea.  You have wget, gcc and X11 headers installed?

(1) Then run this script:

8<
#!/bin/sh

mkdir twm.tweaked
cd twm.tweaked

wget http://xorg.freedesktop.org/archive/individual/app/twm-1.0.3.tar.gz
wget http://www.inf.tu-dresden.de/~ek1/twm-1.0.3-diff1-7.tar

tar -xzf twm-1.0.3.tar.gz
tar -xf  twm-1.0.3-diff1-7.tar

cd twm-1.0.3
LDFLAGS=-lXft \
CFLAGS="-O2 -DTWM_USE_OPACITY -DTWM_USE_XFT -I/usr/include/freetype2" \
./configure  --prefix=/usr/local

cd src
tar -xzf ../../twm-1.0.3-diff1.MyFont_ChangeGC.tgz
tar -xzf ../../twm-1.0.3-diff2.TWM_USE_XFT.tgz
tar -xzf ../../twm-1.0.3-diff3.Spacing.tgz
tar -xzf ../../twm-1.0.3-diff4.TWM_USE_OPACITY.tgz
tar -xzf ../../twm-1.0.3-diff5.Fixes.tgz
tar -xzf ../../twm-1.0.3-diff6.Improvements.tgz
tar -xzf ../../twm-1.0.3-diff7.Appearance.tgz
./Apply_diff1.sh
./Apply_diff2.sh
./Apply_diff3.sh
./Apply_diff4.sh
./Apply_diff5.sh
./Apply_diff6.sh
./Apply_diff7.sh

make

cp twm ../../
cd ../../
rm -rf twm-1.0.3
rm twm-1.0.3-diff[1-7].*.tgz

8<


... and you'll have twm with XFT Linux/x86 binary in twm.tweaked/.


(2) xcompmgr is at
http://xapps.freedesktop.org/release/xcompmgr-1.1.3.tar.gz


(3) put

Section "Extensions"
  Option "RENDER" "Enable"
  Option "Composite" "Enable"
  Option "DAMAGE" "Enable"
  Option "XFIXES" "Enable"
EndSection

into xorg.conf,


(4) run "xcompmgr -c -o 0.5 -r 6 -t -6 -l -9 &" prior to "exec twm" in
.xinitrc.

That's it.  :-)


Greetings,

Eeri Kask
___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel


Support for MS Virtual PC 2007

2007-11-08 Thread Tarpai A.

Hi XFree86 Developers!

First of all let me express all my respect for the tremendous work you guys 
put into XFree86!


I'm developing native for PC hardware now using MS Virtual PC 2007, and I 
needed true-color high resolutions. I've managed to set 8-, 16 and 32-bit 
screen modes in *any* arbitrary resolution under VPC by programming the 
video 'registers'. I don't use Linux and/or XFree, but I can see that many 
XFree users has problems setting up VPC and XFree.


I was thinking to ask this community whether it might be interesting to give 
dedicated support for VPC! Having shortage of time I cannot patch XFree, it 
was a long time ago that I read the source code, but with a little help by 
people who know exactly where to insert my SetScreenMode() routine this 
might go relatively fast.


I was interested only in the so called 'enhanced' modes, beyong standard VGA 
(I think VPC emulates VGA functions very well). I've booted VPC with my 
serial-communication program and poked registers for a few days.. Being 
software emulation there are a lot of differences compare to a real S3 
Trio64. Most of the registers are useless, and only some of them matter. It 
turned out that VPC requires 3 lines of S3 init code for enhanced modes, and 
a short SetScreenMode() function that supports 8-, 16- and 32 bpp color 
depths at any resolution, of those of course which fit the emulated 4MB 
linear frame buffer at 0xF800.


I would gladly contribute to XFree development, if VPC support has any of 
interest! Some shots and details can be found on my page: 
www.halicery.com/vpc.htm. Code might look messy, sorry about that..


Identification hint: S3 in VPC reports different pci_ids in PCI config space 
(0x8811) and in extended CR registers 2D-2E (0x8810). Maybe this is enough 
to identify VPC??


Seems like to me that VPC fully supports Trio64's 2D acceleration. I just 
have doubts whether to use it or not, being software emulation anyway.. Can 
be comfortable but with performance issues. That should be benchmarked 
first.



Best Regards,
Attila Tarpai

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


___
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel