From ee162bfc2682db1c37dc3973daa84407f2aeb205 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Thu, 11 Aug 2011 09:03:51 +0000 Subject: [PATCH] Animage - checking for "rolled up" window git-svn-id: svn://kolibrios.org@2045 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/animage/trunk/events_of_mouse.inc | 7 +++++++ programs/media/animage/trunk/events_of_window.inc | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/programs/media/animage/trunk/events_of_mouse.inc b/programs/media/animage/trunk/events_of_mouse.inc index 90db7d386f..0e05624b08 100644 --- a/programs/media/animage/trunk/events_of_mouse.inc +++ b/programs/media/animage/trunk/events_of_mouse.inc @@ -2,6 +2,13 @@ ;-------------interraction MOUSE-------------- ;--------------------------------------------- mouse: + or ecx,-1 + mcall 9,procinfo + + mov eax,[procinfo+70] ;staus of window + test eax,100b + jne still + call GetMouseCoordinats ;panel mov edx,[Window_SizeX] diff --git a/programs/media/animage/trunk/events_of_window.inc b/programs/media/animage/trunk/events_of_window.inc index 96273a5565..f83fe0e826 100644 --- a/programs/media/animage/trunk/events_of_window.inc +++ b/programs/media/animage/trunk/events_of_window.inc @@ -58,6 +58,11 @@ no_znak2: ;xor esi,esi ;0x805080d0 ; xor edi,edi ;0x005080d0 mcall 0,,,0x53aabbcc,,name_of_program + + mov eax,[procinfo+70] ;staus of window + test eax,100b + jne .end + ;------------------------------------------------ mov eax,5 mov ebx,20 @@ -162,6 +167,7 @@ no_znak2: sub ebx,25+10 call draw_volume_rectangle ; down and right small area ;------------------------------------------------ +.end: mcall 12,2 ret ;----------------------------------------------------------------------------- \ No newline at end of file