From 437e995f1104faffe296d67b9c9a2d2ed1a949cb Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 26 Oct 2017 20:17:02 +0000 Subject: [PATCH] Eolite: fix small issue, add description to KOSfuncs.inc git-svn-id: svn://kolibrios.org@7104 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/KOSfuncs.inc | 14 +++++++------- programs/cmm/eolite/Eolite.c | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/programs/KOSfuncs.inc b/programs/KOSfuncs.inc index 1bc8e1580a..e4fc5f9065 100644 --- a/programs/KOSfuncs.inc +++ b/programs/KOSfuncs.inc @@ -17,14 +17,14 @@ SF_REDRAW=12 SSF_END_DRAW=2 SF_DRAW_RECT=13 ; draw rectangle to the window SF_GET_SCREEN_SIZE=14 ; get screen resolution -SF_BACKGROUND_SET=15 - SSF_SIZE_BG=1 - SSF_PIXEL_BG=2 - SSF_REDRAW_BG=3 - SSF_MODE_BG=4 - SSF_IMAGE_BG=5 +SF_BACKGROUND_SET=15 ; work with desktop background graphics + SSF_SIZE_BG=1 ; set a size of the background image + SSF_PIXEL_BG=2 ; put pixel on the background image + SSF_REDRAW_BG=3 ; redraw background + SSF_MODE_BG=4 ; set drawing mode for the background + SSF_IMAGE_BG=5 ; put block of pixels on the background image SSF_MAP_BG=6 ; map background image to the address space of the process - SSF_UNMAP_BG=7 + SSF_UNMAP_BG=7 ; close mapped background data SSF_LAST_DRAW=8 ; get coordinates of the last draw to the background SSF_REDRAW_RECT=9 ; redraws a rectangular part of the background SF_RD_TO_FLOPPY=16 ; save ramdisk on the floppy diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 8d1e6cae66..1bf1e43e77 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -241,7 +241,9 @@ void main() //select file if (mouse.key&MOUSE_LEFT) && (mouse.up) { - if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw(); else Open(0); + if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw(); else { + if (mouse.y - files.y / files.item_h + files.first == files.cur_y) Open(0); + } } //file menu if (mouse.key&MOUSE_RIGHT)