comparison src/video/vgl/SDL_vglvideo.c @ 1565:57431b199aed

Fixed bug #52 Integrated most of the NetBSD and DragonFly patches at: ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/SDL/patches/ Thanks to Thomas Klausner for defailed information on the patches
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Mar 2006 08:54:50 +0000
parents 8d9bb0cf2c2a
children 782fd950bd46 c121d94672cb a1b03ba2fcd0
comparison
equal deleted inserted replaced
1564:4950a25bd91e 1565:57431b199aed
553 vminfop->Type = VIDBUF8; 553 vminfop->Type = VIDBUF8;
554 break; 554 break;
555 case V_INFO_MM_VGAX: 555 case V_INFO_MM_VGAX:
556 vminfop->Type = VIDBUF8X; 556 vminfop->Type = VIDBUF8X;
557 break; 557 break;
558 #if defined(__FREEBSD__) && __FreeBSD_version >= 500000 558 #if defined(__FREEBSD__) && (defined(__DragonFly__) || __FreeBSD_version >= 500000)
559 case V_INFO_MM_DIRECT: 559 case V_INFO_MM_DIRECT:
560 vminfop->PixelBytes = minfo.vi_pixel_size; 560 vminfop->PixelBytes = minfo.vi_pixel_size;
561 switch (vminfop->PixelBytes) { 561 switch (vminfop->PixelBytes) {
562 case 2: 562 case 2:
563 vminfop->Type = VIDBUF16; 563 vminfop->Type = VIDBUF16;