]> git.lizzy.rs Git - plan9front.git/commitdiff
vgaigfx: enable softscreen by default
authorcinap_lenrek <cinap_lenrek@felloff.net>
Thu, 29 Dec 2016 02:46:08 +0000 (03:46 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Thu, 29 Dec 2016 02:46:08 +0000 (03:46 +0100)
given that the igfx driver doesnt provide any acceleration functions
and drawing is usually faster with double buffering as it eleminates
reads over the pci bus, enable softscreen by default.

sys/src/9/pc/vgaigfx.c

index d1d01708ce810d1aa01b193a6d1f3d9c5d968d7b..173d8c24539fb6f875b4f4252b61f82836d040a6 100644 (file)
@@ -103,6 +103,7 @@ igfxenable(VGAscr* scr)
                if(scr->storage != 0)
                        scr->storage -= PGROUND(64*64*4);
        }
+       scr->softscreen = 1;
 }
 
 VGAdev vgaigfxdev = {