Fixes to skin drawing code, in case default.skn wasn't loaded on OS startup

Prevent creation of buttons with negative or zero width/height

git-svn-id: svn://kolibrios.org@54 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld)
2006-03-04 17:44:44 +00:00
parent 2a183233b4
commit 47d7819f9a
4 changed files with 44 additions and 4 deletions

View File

@@ -173,6 +173,11 @@ sys_button:
push ecx
push edx
or ax,ax
jle noaddbutt
or bx,bx
jle noaddbutt
test ecx,0x40000000
jnz button_no_draw