BGE: removing old hack from Dome code. it's no longer needed and it was making dome...
authorDalai Felinto <dfelinto@gmail.com>
Mon, 3 Oct 2011 03:32:59 +0000 (03:32 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 3 Oct 2011 03:32:59 +0000 (03:32 +0000)
source/gameengine/Ketsji/KX_Dome.cpp

index f0ea6f15ffe33942af2b0dd4d198baad60da19ed..48ad99ae37b0b3bc32ae8d3808292974f0819953 100644 (file)
@@ -231,26 +231,12 @@ void KX_Dome::CalculateImageSize(void)
 - reduce the buffer for better performace
 - create a power of 2 texture bigger than the buffer
 */
-/*
-Blender handles Canvas size differently when in fullscreen mode.
-We are manually checking for that. Although it's a hack, it works.
-
-Bug reported here: #18655 - Inconsistency of pixels in canvas dimensions when in maximized mode (affecting BGE Dome)
-http://projects.blender.org/tracker/?func=detail&aid=18655&group_id=9&atid=125
-*/
-
        canvaswidth = m_canvas->GetWidth();
        canvasheight = m_canvas->GetHeight();
 
-       bool fullscreen(false); //XXX HACK
-       fullscreen = (canvaswidth != m_viewport.GetWidth());
-
        m_buffersize = (canvaswidth > canvasheight?canvasheight:canvaswidth);
        m_buffersize = (int)(m_buffersize*m_resbuffer); //reduce buffer size for better performance
        
-       if (fullscreen) //XXX HACK
-               m_buffersize --;
-
        int i = 0;
        while ((1 << i) <= m_buffersize)
                i++;
@@ -266,10 +252,6 @@ http://projects.blender.org/tracker/?func=detail&aid=18655&group_id=9&atid=125
                warp.bufferwidth  = canvaswidth;
                warp.bufferheight = canvasheight;
        }
-
-       //XXX HACK
-       canvaswidth  = m_viewport.GetWidth();
-       canvasheight = m_viewport.GetHeight();
 }
 
 bool KX_Dome::CreateDL(){