1
0
Fork 0

Fix setwindow position setting for 15/16/32bpp modes

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2782
This commit is contained in:
Sjoerd van der Berg 2007-01-24 16:29:53 +00:00
parent 5660ee1856
commit 576d1c6eff

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: int10_vesa.cpp,v 1.25 2007-01-08 19:45:41 qbix79 Exp $ */
/* $Id: int10_vesa.cpp,v 1.26 2007-01-24 16:29:53 harekiet Exp $ */
#include <string.h>
#include <stddef.h>
@ -292,6 +292,7 @@ Bit8u VESA_ScanLineLength(Bit8u subcall,Bit16u val, Bit16u & bytes,Bit16u & pixe
Bit8u bpp;
switch (CurMode->type) {
case M_LIN4:
bpp = 1;
break;
case M_LIN8:
bpp=1;
@ -356,11 +357,11 @@ Bit8u VESA_SetDisplayStart(Bit16u x,Bit16u y) {
break;
case M_LIN16:
case M_LIN15:
start=vga.config.scan_len*8*y+x;
start=vga.config.scan_len*8*y+x*2;
vga.config.display_start=start/4;
break;
case M_LIN32:
start=vga.config.scan_len*8*y+x;
start=vga.config.scan_len*8*y+x*4;
vga.config.display_start=start/4;
break;
default: