get background color out of the bitmap

svn path=/trunk/; revision=8025
This commit is contained in:
Martin Fuchs 2004-02-04 09:43:51 +00:00
parent d49e09da20
commit c7278edf80
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<tr>
<td><address style="align: right;"><small>
ROS Explorer Source Code Documentation
<br>generated on 03.02.2004 by <a href="http://www.doxygen.org/index.html">
<br>generated on 04.02.2004 by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address>
</td>

View file

@ -1482,7 +1482,7 @@ void StartMenuRoot::Paint(PaintCanvas& canvas)
int h = min(_logo_size.cy, clnt.bottom);
RECT rect = {0, 0, _logo_size.cx, clnt.bottom-h};
HBRUSH hbr = CreateSolidBrush(clr_bits<=8? clr_bits<=4? RGB(192,192,192): RGB(166,202,240): RGB(71,103,121)); // same color as the background color in the logo bitmap
HBRUSH hbr = CreateSolidBrush(GetPixel(mem_dc, 0, 0));
FillRect(canvas, &rect, hbr);
DeleteObject(hbr);