Commit 84f1ad61 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Fix rub out issue in ResEd's gadget thumbnails

The thumbnail top and right borders would rub off when another window passed
over the top. Bottom and left borders were OK. This was caused by the Wimp's
redraw rectangle using exclusive coordinates for x,y max whereas OS_Plot uses
inclusive.
Tested in eigenfactor 0/1/2.

Version 0.46. Tagged as 'Gadgets-0_46'
parent bcc89530
/* (0.45)
/* (0.46)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.45
#define Module_MajorVersion_CMHG 0.46
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 25 Jan 2023
#define Module_Date_CMHG 24 Mar 2025
#define Module_MajorVersion "0.45"
#define Module_Version 45
#define Module_MajorVersion "0.46"
#define Module_Version 46
#define Module_MinorVersion ""
#define Module_Date "25 Jan 2023"
#define Module_Date "24 Mar 2025"
#define Module_ApplicationDate "25-Jan-23"
#define Module_ApplicationDate "24-Mar-25"
#define Module_ComponentName "Gadgets"
#define Module_FullVersion "0.45"
#define Module_HelpVersion "0.45 (25 Jan 2023)"
#define Module_LibraryVersionInfo "0:45"
#define Module_FullVersion "0.46"
#define Module_HelpVersion "0.46 (24 Mar 2025)"
#define Module_LibraryVersionInfo "0:46"
......@@ -1264,9 +1264,9 @@ _kernel_oserror *scrolllist_plot(ScrollList *sdata)
return e;
box.xmin = sdata->hdr.xmin;
box.xmax = sdata->hdr.xmax;
box.ymin = sdata->hdr.ymin;
box.ymax = sdata->hdr.ymax;
box.xmax = sdata->hdr.xmax - 1; /* Make inclusive for OS_Plot */
box.ymax = sdata->hdr.ymax - 1; /* Make inclusive for OS_Plot */
label.bbox = box;
work_to_screen(&box, &state);
......
......@@ -464,8 +464,8 @@ _kernel_oserror *textarea_plot(TextArea *tdata)
box.xmin = tdata->hdr.xmin;
box.ymin = tdata->hdr.ymin;
box.xmax = tdata->hdr.xmax;
box.ymax = tdata->hdr.ymax;
box.xmax = tdata->hdr.xmax - 1; /* Make inclusive for OS_Plot */
box.ymax = tdata->hdr.ymax - 1; /* Make inclusive for OS_Plot */
label.bbox = box;
work_to_screen(&box, &state);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment