Re: [AD] another gui patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
hi,
here is the _FINAL_ patch to update the sources after my textbox modification.
It modifies the d_helptext_proc in grabber to display the scrollbar correctly.
The patch is for the WIP 3.9.33 CVS.
--
------------------------------------------------------------------------------
Mail: pavlovic@xxxxxxxxxx
WEB : http://redbull.dcs.fmph.uniba.sk/~pavlovic
------------------------------------------------------------------------------
diff -r -U 3 -N allegro.old/tools/grabber.c allegro/tools/grabber.c
--- allegro.old/tools/grabber.c Tue Aug 22 20:46:12 2000
+++ allegro/tools/grabber.c Sun Aug 27 17:37:52 2000
@@ -2348,6 +2348,9 @@
static int d_helptext_proc(int msg, DIALOG *d, int c)
{
+ int (*proc)(int, DIALOG *, int);
+ int ret;
+
if (d->dp == NULL)
d->dp = grabber_help_text;
@@ -2364,8 +2367,13 @@
return D_O_K;
}
- else
- return d_textbox_proc(msg, d, c);
+ else {
+ proc = d->proc;
+ d->proc = d_textbox_proc;
+ ret = d_textbox_proc(msg, d, c);
+ d->proc = proc;
+ return ret;
+ }
};