mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
fix rendering bug
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@784 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -24,7 +24,15 @@ static void draw(MwWidget handle) {
|
|||||||
r.width = MwGetInteger(handle, MwNwidth);
|
r.width = MwGetInteger(handle, MwNwidth);
|
||||||
r.height = MwGetInteger(handle, MwNheight);
|
r.height = MwGetInteger(handle, MwNheight);
|
||||||
|
|
||||||
MwDrawWidgetBack(handle, &r, base, handle->pressed, MwGetInteger(handle, MwNflat) ? handle->pressed : 1);
|
if(MwGetInteger(handle, MwNflat)){
|
||||||
|
if(handle->pressed){
|
||||||
|
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
|
||||||
|
}else{
|
||||||
|
MwDrawRect(handle, &r, base);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
|
||||||
|
}
|
||||||
if(MwGetInteger(handle, MwNflat) && !handle->pressed) {
|
if(MwGetInteger(handle, MwNflat) && !handle->pressed) {
|
||||||
r.x += MwDefaultBorderWidth(handle);
|
r.x += MwDefaultBorderWidth(handle);
|
||||||
r.y += MwDefaultBorderWidth(handle);
|
r.y += MwDefaultBorderWidth(handle);
|
||||||
|
|||||||
Reference in New Issue
Block a user