better button
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@523 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
07776dc7c9
commit
240598066c
1 changed files with 6 additions and 2 deletions
|
|
@ -130,14 +130,18 @@ void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) {
|
|||
}
|
||||
|
||||
void MwDrawWidgetBack(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border) {
|
||||
MwLLColor col;
|
||||
|
||||
if(border) {
|
||||
MwDrawFrame(handle, rect, color, invert);
|
||||
}
|
||||
col = invert ? MwLightenColor(handle, color, -8, -8, -8) : color;
|
||||
if(MwGetInteger(handle, MwNmodernLook)) {
|
||||
MwDrawRectFading(handle, rect, color);
|
||||
MwDrawRectFading(handle, rect, col);
|
||||
} else {
|
||||
MwDrawRect(handle, rect, color);
|
||||
MwDrawRect(handle, rect, col);
|
||||
}
|
||||
if(col != color) MwLLFreeColor(col);
|
||||
}
|
||||
|
||||
void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue