Carlo Bramini (carlo DOT bramix AT libero DOT it):

- Simplify blitting the screen bitmap to the main window.

This also hides a ROS GDI bug, for which I'm going to open a new bug report.
See issue #3241 for more details.

svn path=/trunk/; revision=33528
This commit is contained in:
Colin Finck 2008-05-15 14:06:19 +00:00
parent 571960c0e1
commit c091afbac7

View file

@ -257,8 +257,9 @@ void Draw(HDC aDc)
rop = NOTSRCCOPY;
}
/* Blast the stretched image from memory DC to window DC.*/
StretchBlt(
HdcStrech,
aDc,
0,
0,
AppWidth,
@ -270,18 +271,6 @@ void Draw(HDC aDc)
blitAreaHeight,
rop);
/* Blast the image from memory DC to client DC.*/
BitBlt (
aDc,
0 ,
0 ,
AppWidth ,
AppHeight ,
HdcStrech ,
0 ,
0 ,
SRCCOPY);
/* Cleanup.*/
SelectObject (HdcStrech, hOld);
DeleteObject (HbmpStrech);