X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fglwidget.cpp;h=56fcd0ed824de8490a95cf8e3440b935310dbe8a;hb=26044acf8a4fe70772bd6e69afb8b8d20b5a6af5;hp=e09ebd2fac1c065ae84223371e613d6f9d4c0816;hpb=e285d9bb9ae73f64443fa4add30119dc422c4d08;p=virtualjaguar diff --git a/src/gui/glwidget.cpp b/src/gui/glwidget.cpp index e09ebd2..56fcd0e 100644 --- a/src/gui/glwidget.cpp +++ b/src/gui/glwidget.cpp @@ -1,10 +1,10 @@ // OpenGL implementation in Qt // Parts of this are blantantly ripped off from BSNES (thanks Byuu!) // -// by James L. Hammons +// by James Hammons // (C) 2010 Underground Software // -// JLH = James L. Hammons +// JLH = James Hammons // // Who When What // --- ---------- ------------------------------------------------------------- @@ -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();