mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 09:49:41 +03:00
calendar: consider @panel attachment
git-svn-id: svn://kolibrios.org@4880 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
967dccaa41
commit
dbddd967a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user