From df075e8a1e25ffde78d5658cf3c8d30db141eebd Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 4 Sep 2015 22:56:56 +0000 Subject: [PATCH] Pixies 1.32: fix fix left and top border while window is minimal git-svn-id: svn://kolibrios.org@5796 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/pixie/pixie.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/cmm/pixie/pixie.c b/programs/cmm/pixie/pixie.c index 8990562917..bab7325aac 100644 --- a/programs/cmm/pixie/pixie.c +++ b/programs/cmm/pixie/pixie.c @@ -20,7 +20,7 @@ od_filter filter2 = { "MP3", 0 }; #include "..\lib\patterns\libimg_load_skin.h" -#define ABOUT_MESSAGE "'Pixies Player v1.31\n\nOpen file: O key\nChange skin: F1/F2 +#define ABOUT_MESSAGE "'Pixies Player v1.32\n\nOpen file: O key\nChange skin: F1/F2 Play/Stop: Space or P key\nStart playing selected file: Enter Goto next/previous track: Ctrl + Left/Right Change sound volume: Left/Right key\nMute: M key' -St\n" @@ -149,13 +149,12 @@ void main() mouse.get(); if (tmp_x!=mouse.x) || (tmp_y!=mouse.y) { + debugi(mouse.x); + debugi(tmp_x); z1 = Form.left + mouse.x - tmp_x; z2 = Form.top + mouse.y - tmp_y; - if(z1<=10)z1=0; - if(z2<=10)z2=0; - if(z1>screen.width-Form.width-10)z1=screen.width-Form.width; - if(z2>screen.height-Form.height-10)z2=screen.height-Form.height; - //if(z2<10)z2=0; + if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width; + if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height; MoveSize(z1 , z2, OLD, OLD); draw_window(); }