X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo.cpp;h=cd214e069d9d26c0bda4b94a194caa2d7d6cadc6;hb=59ca39a29be645918de45bd144865ba6487f4009;hp=601fc307c9cb6b34e9165cff708e7c68548db11c;hpb=33d8eb46c17988e9e843391187d390ecd7e6aa86;p=virtualjaguar diff --git a/src/video.cpp b/src/video.cpp index 601fc30..cd214e0 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -81,7 +81,8 @@ bool InitVideo(void) } if (vjs.useOpenGL) - sdlemu_init_opengl(surface, 1/*method*/, 2/*size*/, 0/*texture type (linear, nearest)*/); +//Should make another setting here, for either linear or nearest (instead of just picking one) + sdlemu_init_opengl(surface, 1/*method*/, 2/*size*/, vjs.glFilter/*texture type (linear, nearest)*/); // Initialize Joystick support under SDL if (vjs.useJoystick) @@ -169,9 +170,10 @@ void ResizeScreen(uint32 width, uint32 height) exit(1); } - sprintf(window_title, "Virtual Jaguar (%i x %i)", (int)width, (int)height); - - if (!vjs.useOpenGL) + if (vjs.useOpenGL) + // This seems to work well for resizing (i.e., changes in the pixel width)... + sdlemu_resize_texture(surface, mainSurface, vjs.glFilter); + else { mainSurface = SDL_SetVideoMode(width, height, 16, mainSurfaceFlags); @@ -182,11 +184,12 @@ void ResizeScreen(uint32 width, uint32 height) } } + sprintf(window_title, "Virtual Jaguar (%i x %i)", (int)width, (int)height); SDL_WM_SetCaption(window_title, window_title); // This seems to work well for resizing (i.e., changes in the pixel width)... - if (vjs.useOpenGL) - sdlemu_resize_texture(surface, mainSurface); +// if (vjs.useOpenGL) +// sdlemu_resize_texture(surface, mainSurface); } //