changeset 343:ec7b16345547

-zoom added.
author se7encode
date Wed, 11 Apr 2001 09:12:42 +0000
parents ac9bfa4a1005
children 9f66a83f31e6
files libvo/vo_svga.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Wed Apr 11 02:11:39 2001 +0000
+++ b/libvo/vo_svga.c	Wed Apr 11 09:12:42 2001 +0000
@@ -82,7 +82,7 @@
   pformat = format;
   if (format == IMGFMT_YV12) bpp = 32;
   else bpp = format & 255;
-  if (d_width > 800)
+  if (width > 800)
     switch (bpp) {
       case 32: vid_mode = 36; break;
       case 24: vid_mode = 25; break;
@@ -90,7 +90,7 @@
       case 15: vid_mode = 23; break;
     }
   else
-    if (d_width > 640)
+    if (width > 640)
       switch (bpp) {
         case 32: vid_mode = 35; break;
         case 24: vid_mode = 22; break;
@@ -125,7 +125,7 @@
   
   orig_w = width;
   orig_h = height;
-  if (fullscreen && (WIDTH != orig_w)) {
+  if ((fullscreen & 0x04) && (WIDTH != orig_w)) {
     if (((orig_w*1.0) / orig_h) < (4.0/3)) {
       maxh = HEIGHT;
       scaling = maxh / (orig_h * 1.0);