Fixed positioning of graphic in start menu
authorGed Murphy <gedmurphy@reactos.org>
Thu, 15 Dec 2005 20:27:16 +0000 (20:27 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Thu, 15 Dec 2005 20:27:16 +0000 (20:27 +0000)
by Sebastiaan Roodenburg (KaRaMBa : IRC)

svn path=/trunk/; revision=20197

reactos/subsys/system/explorer/taskbar/startmenu.cpp

index b0f1712..9ad89f9 100644 (file)
@@ -1824,7 +1824,7 @@ void StartMenuRoot::Paint(PaintCanvas& canvas)
 
        PatBlt(canvas, _logo_size.cx, 0, 1, clnt.bottom, WHITENESS);
 
 
        PatBlt(canvas, _logo_size.cx, 0, 1, clnt.bottom, WHITENESS);
 
-       BitBlt(canvas, 0, clnt.bottom-h, _logo_size.cx, h, mem_dc, 0, 0, SRCCOPY);
+    BitBlt(canvas, 0, clnt.bottom-h, _logo_size.cx, h, mem_dc, 0, ( h<_logo_size.cy ? _logo_size.cy-h : 0) , SRCCOPY);
 
        super::Paint(canvas);
 }
 
        super::Paint(canvas);
 }