it works
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@169 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
2b0d063dd8
commit
9b6ed7b6c3
7 changed files with 142 additions and 22 deletions
|
|
@ -7,7 +7,6 @@
|
|||
#define FontHeight 14
|
||||
#define FontScale 1
|
||||
#define ColorDiff 128
|
||||
#define BorderWidth 2
|
||||
|
||||
static int hex(const char* txt, int len) {
|
||||
int i;
|
||||
|
|
@ -84,7 +83,7 @@ void MwDrawRect(MwWidget handle, MwRect* rect, MwLLColor color) {
|
|||
}
|
||||
|
||||
void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) {
|
||||
MwDrawFrameEx(handle, rect, color, invert, BorderWidth);
|
||||
MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth);
|
||||
}
|
||||
|
||||
void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int border) {
|
||||
|
|
@ -143,7 +142,7 @@ void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, i
|
|||
|
||||
void MwDrawTriangle(MwWidget handle, MwRect* rect, MwLLColor color, int invert, int direction) {
|
||||
MwPoint p1[4], p2[4], p3[4], p4[3];
|
||||
const int border = BorderWidth;
|
||||
const int border = MwDefaultBorderWidth;
|
||||
MwLLColor darker = MwLightenColor(handle, color, -ColorDiff, -ColorDiff, -ColorDiff);
|
||||
MwLLColor lighter = MwLightenColor(handle, color, ColorDiff, ColorDiff, ColorDiff);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue