diff Render.cpp @ 2217:744ed51880ed

expand button
author Ritor1
date Sat, 15 Feb 2014 22:00:13 +0600
parents 3f375342de12
children e6771956e74a
line wrap: on
line diff
--- a/Render.cpp	Sat Feb 15 16:00:19 2014 +0600
+++ b/Render.cpp	Sat Feb 15 22:00:13 2014 +0600
@@ -1612,8 +1612,8 @@
 
   v5.left = 0;
   v5.top = 0;
-  v5.bottom = window->GetHeight();
-  v5.right = window->GetWidth();
+  v5.bottom = 480;//window->GetHeight(); //Ritor1: проблема с кнопкой "развернуть"
+  v5.right = 640; //window->GetWidth();
 
   if (bWindowed || bForceBlit)
   {
@@ -2666,31 +2666,28 @@
 //----- (0049FC37) --------------------------------------------------------
 void Render::Present()
 {
-  Render *v1; // esi@1
-  struct tagRECT Rect; // [sp+8h] [bp-28h]@11
-  RECT a4; // [sp+18h] [bp-18h]@11
-  struct tagPOINT Point; // [sp+28h] [bp-8h]@11
-
-  v1 = this;
+  //struct tagRECT Rect; // [sp+8h] [bp-28h]@11
+  //RECT a4; // [sp+18h] [bp-18h]@11
+  //struct tagPOINT Point; // [sp+28h] [bp-8h]@11
+
   if ( !pRenderer->pRenderD3D || this->using_software_screen_buffer )
   {
     this->pBeforePresentFunction();
-    if ( v1->pRenderD3D )
-    {
-      if ( v1->using_software_screen_buffer )
-      {
+    if ( this->pRenderD3D )
+    {
+      if ( this->using_software_screen_buffer )
         pRenderD3D->Present(false);
-      }
-    }
-    else __debugbreak(); // no sr
+    }
+    else
+      __debugbreak(); // no sr
     /*{
-      if ( v1->bWindowMode )
+      if ( this->bWindowMode )
       {
         RestoreFrontBuffer();
-        GetClientRect(v1->hWnd, &Rect);
+        GetClientRect(this->hWnd, &Rect);
         Point.y = 0;
         Point.x = 0;
-        ClientToScreen(v1->hWnd, &Point);
+        ClientToScreen(this->hWnd, &Point);
         OffsetRect(&Rect, Point.x, Point.y);
         a4.top = 0;
         a4.bottom = 480;