Original Post
is there anyway to speed this up?
it draws a button/menu, much like the
ones in the WinGui
void DrawButton(RECT dest, HDC destDC)
{
int Top,Left,Right,Bottom;
Top = dest.top;
Left = dest.left;
Right = dest.right;
Bottom = dest.bottom;
for (Top = dest.top;Top <= Bottom;Top++)
{
for (Left = dest.left; Left <= Right; Left++)
{
SetPixel(destDC,Left,Top,RGB(128,128,128));
SetPixel(destDC,dest.left,Top,RGB(190,190,190));
SetPixel(destDC,Left,dest.top,RGB(190,190,190));
SetPixel(destDC,Right,Top,RGB(91,91,91));
SetPixel(destDC,Left,Bottom,RGB(91,91,91));
}
}
}
[edited by - vboyx on May 22, 2003 10:57:28 PM]
[edited by - vboyx on May 22, 2003 10:57:48 PM]