Mercurial > mplayer.hg
comparison libvo/vo_svga.c @ 8673:4c0882ee0f4d
vga_draw* functions don't support linear memory for 'most' video cards
author | iive |
---|---|
date | Tue, 31 Dec 2002 02:37:36 +0000 |
parents | 602cf042a013 |
children | 13b7ad16f278 |
comparison
equal
deleted
inserted
replaced
8672:9065fd98fad3 | 8673:4c0882ee0f4d |
---|---|
476 if(bpp==1) | 476 if(bpp==1) |
477 LINEWIDTH=(WIDTH+7)/8; | 477 LINEWIDTH=(WIDTH+7)/8; |
478 else | 478 else |
479 LINEWIDTH=vga_getmodeinfo(vid_mode)->linewidth; | 479 LINEWIDTH=vga_getmodeinfo(vid_mode)->linewidth; |
480 | 480 |
481 vga_setlinearaddressing(); | 481 // vga_setlinearaddressing(); //it is not compatable with vga_draw* for "some" cards |
482 if(oldmethod) { | 482 if(oldmethod) { |
483 buffer=malloc(HEIGHT*LINEWIDTH); | 483 buffer=malloc(HEIGHT*LINEWIDTH); |
484 maxframes=0; | 484 maxframes=0; |
485 } else if ((vga_getmodeinfo(vid_mode)->flags&IS_LINEAR)) { | 485 } else if ((vga_getmodeinfo(vid_mode)->flags&IS_LINEAR)) { |
486 directrender=1; | 486 directrender=1; |