3 Commits

Author SHA1 Message Date
b986b99735 Laser Tank: fix window height for a various skin height
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 32s
Build system / Build (pull_request) Successful in 5m2s
2025-03-26 01:38:49 +02:00
af41fe4aa7 Pipet: Fixed wrong window colors on some skins and optimized size (#162)
- Fixed wrong window colors on some skins;
- Size optimization;
- Added template macro for quickly creating `struct` with specific fields.

Co-authored-by: leency <lipatov.kiril@gmail.com>
Reviewed-on: #162
Reviewed-by: Max Logaev <maxlogaev@proton.me>
Co-authored-by: Burer <burer@kolibrios.org>
Co-committed-by: Burer <burer@kolibrios.org>
2025-03-20 00:18:26 +01:00
b1a1691b84 Libimg: fixed a bug when rotating images smaller than 2 pixels
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 31s
Build system / Build (pull_request) Successful in 5m17s
2025-03-19 11:37:12 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -1053,6 +1053,8 @@ endl
test [_flip_kind], FLIP_VERTICAL
jz .dont_flip_vert
cmp dword [ebx + Image.Height], 2
jl .dont_flip_vert
imul eax, ecx
sub eax, [scanline_len]
@@ -1101,6 +1103,8 @@ endl
test [_flip_kind], FLIP_HORIZONTAL
jz .exit
cmp dword [ebx + Image.Width], 2
jl .exit
mov ecx, [ebx + Image.Height]
mov eax, [ebx + Image.Type]

View File

@@ -1163,10 +1163,7 @@ void draw_window(void)
if (w_redraw)
{
kos_WindowRedrawStatus(1);
//kos_DefineAndDrawWindow(50, 50, 640, 506 - 22 + kos_GetSkinHeight(), 0x74, 0xEEEEEE, 0, 0, (Dword)windowTitle);
kos_DefineAndDrawWindow(10, 40, 384 + 9, 384 + 25, 0x74, 0x444444, 0, 0, (Dword)header);
kos_DefineAndDrawWindow(10, 40, 384 + 9, 388 + kos_GetSkinHeight(), 0x74, 0x444444, 0, 0, (Dword)header);
kos_WindowRedrawStatus(2);
w_redraw = false;
}