Congrats! Re: commit asfrent - r29883 - abiword/branches/dblbuffering/src/af/gr/win

From: Martin Sevior <msevior_at_gmail.com>
Date: Sun Jun 26 2011 - 13:27:36 CEST

Congratutlations Andrei! This is a great step foreword for our windows build :-)

Cheers

Martin

Author: asfrent
Date: 2011-06-26 10:59:02 +0200 (Sun, 26 Jun 2011)
New Revision: 29883

Modified:
   abiword/branches/dblbuffering/src/af/gr/win/gr_Win32Graphics.cpp
Log:
fixed the double buffering code in gr_Win32Graphics.cpp. It works!

Modified: abiword/branches/dblbuffering/src/af/gr/win/gr_Win32Graphics.cpp
===================================================================
--- abiword/branches/dblbuffering/src/af/gr/win/gr_Win32Graphics.cpp
 2011-06-26 06:44:49 UTC (rev 29882)
+++ abiword/branches/dblbuffering/src/af/gr/win/gr_Win32Graphics.cpp
 2011-06-26 08:59:02 UTC (rev 29883)
@@ -2572,13 +2572,16 @@

        // compute width, height
        int width = clientRect.right - clientRect.left;
- int height = clientRect.top - clientRect.bottom;
+ int height = clientRect.bottom - clientRect.top;

        // set up the buffer
        m_bufferHdc = CreateCompatibleDC(m_hdc);
        m_bufferBitmap = CreateCompatibleBitmap(m_hdc, width, height);
        m_hOld = SelectObject(m_bufferHdc, m_bufferBitmap);

+ // copy the screen to the buffer
+ BitBlt(m_bufferHdc, 0, 0, width, height, m_hdc,
clientRect.left, clientRect.top, SRCCOPY);
+
        // save the current hdc
        m_originalScreenHdc = m_hdc;
<snip>
Received on Sun Jun 26 13:27:44 2011

This archive was generated by hypermail 2.1.8 : Sun Jun 26 2011 - 13:27:44 CEST