diff --git a/kernel/trunk/gui/skincode.inc b/kernel/trunk/gui/skincode.inc index 6c3c1587ee..96943eadb7 100644 --- a/kernel/trunk/gui/skincode.inc +++ b/kernel/trunk/gui/skincode.inc @@ -121,7 +121,7 @@ parse_skin_data: lea esi, [ebx+SKIN_PARAMS.dtp.data] mov edi, common_colours mov ecx, [ebx+SKIN_PARAMS.dtp.size] - and ecx, 127 + and ecx, 255 rep movsb mov eax, dword[ebx+SKIN_PARAMS.margin.right] mov dword[_skinmargins+0], eax diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index d6d97681c1..ff85e95601 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -26,7 +26,7 @@ macro FuncTable name, table_name, [label] } uglobal - common_colours rd 32 + common_colours rd 48 draw_limits RECT endg @@ -173,7 +173,7 @@ align 4 syscall_display_settings.02: dec ebx mov esi, ecx - and edx, 127 + and edx, 255 mov edi, common_colours mov ecx, edx rep movsb @@ -183,7 +183,7 @@ syscall_display_settings.02: align 4 syscall_display_settings.03: mov edi, ecx - and edx, 127 + and edx, 255 mov esi, common_colours mov ecx, edx rep movsb