comparison Render.cpp @ 2217:744ed51880ed

expand button
author Ritor1
date Sat, 15 Feb 2014 22:00:13 +0600
parents 3f375342de12
children e6771956e74a
comparison
equal deleted inserted replaced
2216:3f375342de12 2217:744ed51880ed
1610 RECT v5; // [sp+18h] [bp-18h]@1 1610 RECT v5; // [sp+18h] [bp-18h]@1
1611 struct tagPOINT Point; // [sp+28h] [bp-8h]@4 1611 struct tagPOINT Point; // [sp+28h] [bp-8h]@4
1612 1612
1613 v5.left = 0; 1613 v5.left = 0;
1614 v5.top = 0; 1614 v5.top = 0;
1615 v5.bottom = window->GetHeight(); 1615 v5.bottom = 480;//window->GetHeight(); //Ritor1: проблема с кнопкой "развернуть"
1616 v5.right = window->GetWidth(); 1616 v5.right = 640; //window->GetWidth();
1617 1617
1618 if (bWindowed || bForceBlit) 1618 if (bWindowed || bForceBlit)
1619 { 1619 {
1620 RECT rc; 1620 RECT rc;
1621 GetClientRect(hWindow, &rc); 1621 GetClientRect(hWindow, &rc);
2664 2664
2665 2665
2666 //----- (0049FC37) -------------------------------------------------------- 2666 //----- (0049FC37) --------------------------------------------------------
2667 void Render::Present() 2667 void Render::Present()
2668 { 2668 {
2669 Render *v1; // esi@1 2669 //struct tagRECT Rect; // [sp+8h] [bp-28h]@11
2670 struct tagRECT Rect; // [sp+8h] [bp-28h]@11 2670 //RECT a4; // [sp+18h] [bp-18h]@11
2671 RECT a4; // [sp+18h] [bp-18h]@11 2671 //struct tagPOINT Point; // [sp+28h] [bp-8h]@11
2672 struct tagPOINT Point; // [sp+28h] [bp-8h]@11 2672
2673
2674 v1 = this;
2675 if ( !pRenderer->pRenderD3D || this->using_software_screen_buffer ) 2673 if ( !pRenderer->pRenderD3D || this->using_software_screen_buffer )
2676 { 2674 {
2677 this->pBeforePresentFunction(); 2675 this->pBeforePresentFunction();
2678 if ( v1->pRenderD3D ) 2676 if ( this->pRenderD3D )
2679 { 2677 {
2680 if ( v1->using_software_screen_buffer ) 2678 if ( this->using_software_screen_buffer )
2681 {
2682 pRenderD3D->Present(false); 2679 pRenderD3D->Present(false);
2683 } 2680 }
2684 } 2681 else
2685 else __debugbreak(); // no sr 2682 __debugbreak(); // no sr
2686 /*{ 2683 /*{
2687 if ( v1->bWindowMode ) 2684 if ( this->bWindowMode )
2688 { 2685 {
2689 RestoreFrontBuffer(); 2686 RestoreFrontBuffer();
2690 GetClientRect(v1->hWnd, &Rect); 2687 GetClientRect(this->hWnd, &Rect);
2691 Point.y = 0; 2688 Point.y = 0;
2692 Point.x = 0; 2689 Point.x = 0;
2693 ClientToScreen(v1->hWnd, &Point); 2690 ClientToScreen(this->hWnd, &Point);
2694 OffsetRect(&Rect, Point.x, Point.y); 2691 OffsetRect(&Rect, Point.x, Point.y);
2695 a4.top = 0; 2692 a4.top = 0;
2696 a4.bottom = 480; 2693 a4.bottom = 480;
2697 a4.left = 0; 2694 a4.left = 0;
2698 a4.right = 640; 2695 a4.right = 640;