diff --git a/kernel/trunk/default.skn b/kernel/trunk/default.skn deleted file mode 100644 index 035a133a4..000000000 Binary files a/kernel/trunk/default.skn and /dev/null differ diff --git a/kernel/trunk/gui/skincode.inc b/kernel/trunk/gui/skincode.inc index babc1fcca..28ac5a1db 100644 --- a/kernel/trunk/gui/skincode.inc +++ b/kernel/trunk/gui/skincode.inc @@ -22,8 +22,8 @@ read_skin_file: jnz .noskin xchg eax, [skin_data] - cmp eax, _skin_file_default - je @f + test eax, eax + jz @f stdcall kernel_free, eax @@: @@ -86,7 +86,9 @@ ends align 4 load_default_skin: mov [_skinh], 22 - mov [skin_data], _skin_file_default + mov ebx, _skin_file_default + call read_skin_file + ret ;------------------------------------------------------------------------------ align 4 parse_skin_data: diff --git a/kernel/trunk/gui/skindata.inc b/kernel/trunk/gui/skindata.inc index 99349f2ad..29ccc51ae 100644 --- a/kernel/trunk/gui/skindata.inc +++ b/kernel/trunk/gui/skindata.inc @@ -13,7 +13,7 @@ $Revision$ ; iglobal - _skin_file_default file "default.skn" + _skin_file_default db '/sys/DEFAULT.SKN',0 endg struct SKIN_DATA