From dbddd967a1d410d1f6c3b31b3d029f002c9d5e69 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 22 Apr 2014 19:15:54 +0000 Subject: [PATCH] calendar: consider @panel attachment git-svn-id: svn://kolibrios.org@4880 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/calendar/trunk/calendar.asm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/programs/system/calendar/trunk/calendar.asm b/programs/system/calendar/trunk/calendar.asm index 456008113..7e39f1ca7 100644 --- a/programs/system/calendar/trunk/calendar.asm +++ b/programs/system/calendar/trunk/calendar.asm @@ -485,11 +485,19 @@ draw_clock: define_window: mcall 12,1 + mcall 48, 5 ; GetClientTop, fix for case when @patel in the top + shr ebx, 16 + mov ecx,ebx + shl ecx,16 + cmp ecx,0 + jne panel_top + ; panel bottom mcall 48,5 ;get screen size mov ecx, ebx sub ecx, WIN_H shl ecx, 16 - add ecx, WIN_H +panel_top: + add ecx, WIN_H ; [y start] *65536 + [y size] mov ebx, eax sub eax, WIN_W shl ebx, 16