{
if(rootWindow == this)
{
+ surface.blend = false;
surface.SetBackground({ 0 });
// Top
surface.Area(size.w-9, bmpTopBorder.bitmap.height, size.w-1, size.h);
// Bottom
surface.Area(0,size.h-9,size.w-1, size.h);
+ surface.blend = true;
}
}
}
{
bool isNormal = (state == normal);
int top = 0, border = 0, bottom = 0;
+
if(state == minimized)
top = border = bottom = DEAD_BORDER;
else if(((BorderBits)borderStyle).fixed /*sizable*/)
surface.Blit(bmpBottomBorder.bitmap, 0, 27 + 448, 0, 0, bmpBottomBorder.bitmap.width, bmpBottomBorder.bitmap.height);
*/
surface.alphaWrite = blend;
- // surface.blend = rootWindow != this;
surface.Blit(bmpTopLeftBorder.bitmap, 0, 0, 0, 0, bmpTopLeftBorder.bitmap.width, bmpTopLeftBorder.bitmap.height);
surface.Stretch(bmpTopBorder.bitmap, bmpTopLeftBorder.bitmap.width, 0, 0, 0, size.w - 2 * bmpTopLeftBorder.bitmap.width, bmpTopBorder.bitmap.height,
bmpBottomBorder.bitmap.width, bmpBottomBorder.bitmap.height);
surface.Blit(bmpBottomRightBorder.bitmap, size.w - bmpBottomRightBorder.bitmap.width, size.h - 9, 0, 0, bmpBottomRightBorder.bitmap.width, bmpBottomRightBorder.bitmap.height);
//surface.alphaWrite = DontWrite;
- surface.blend = true;
surface.SetForeground(activeBorder);
/*