mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
fix border
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@710 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
static int create(MwWidget handle) {
|
||||
MwSetDefault(handle);
|
||||
|
||||
MwSetInteger(handle, MwNhasBorder, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -11,11 +13,9 @@ static void draw(MwWidget handle) {
|
||||
MwRect fr;
|
||||
MwRect rr;
|
||||
MwLLColor base = MwParseColor(handle, MwGetText(handle, MwNbackground));
|
||||
|
||||
int hasBorder = MwGetInteger(handle, MwnhasBorder);
|
||||
int inverted;
|
||||
|
||||
if(hasBorder) {
|
||||
if(MwGetInteger(handle, MwNhasBorder)) {
|
||||
inverted = MwGetInteger(handle, MwNinverted);
|
||||
fr.x = 0;
|
||||
fr.y = 0;
|
||||
|
||||
Reference in New Issue
Block a user