X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fglwidget.cpp;h=56fcd0ed824de8490a95cf8e3440b935310dbe8a;hb=d4731454394b78afceb79046c1917e9049a09374;hp=747370791df7084fbe09f23e51f5eb76f42897c6;hpb=f30bf746981a99079e766b0d4e9de5391a4175ff;p=virtualjaguar diff --git a/src/gui/glwidget.cpp b/src/gui/glwidget.cpp index 7473707..56fcd0e 100644 --- a/src/gui/glwidget.cpp +++ b/src/gui/glwidget.cpp @@ -23,7 +23,7 @@ #endif GLWidget::GLWidget(QWidget * parent/*= 0*/): QGLWidget(parent), texture(0), - textureWidth(0), textureHeight(0), buffer(0), rasterWidth(320), rasterHeight(240) + textureWidth(0), textureHeight(0), buffer(0), rasterWidth(340), rasterHeight(240) { // Screen pitch has to be the texture width (in 32-bit pixels)... JaguarSetScreenPitch(1024); @@ -52,7 +52,7 @@ void GLWidget::initializeGL() void GLWidget::paintGL() { //kludge -rasterHeight = (vjs.hardwareTypeNTSC ? 240 : 256); +rasterHeight = (vjs.hardwareTypeNTSC ? VIRTUAL_SCREEN_HEIGHT_NTSC : VIRTUAL_SCREEN_HEIGHT_PAL); unsigned outputWidth = width(); unsigned outputHeight = height();