Re: [AD] GUI - d_ctext_proc, file_select_ex, gui_textout_ex |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> file_select_ex() uses a similar function that has the same problem.
Fixed thusly. Applied to mainline.
--
Eric Botcazou
Index: src/fsel.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/fsel.c,v
retrieving revision 1.37
diff -u -p -r1.37 fsel.c
--- src/fsel.c 11 Jun 2003 17:38:07 -0000 1.37
+++ src/fsel.c 16 Jun 2003 16:13:53 -0000
@@ -701,8 +701,8 @@ static void stretch_dialog(DIALOG *d, in
d[FS_FRAME].w = width;
d[FS_FRAME].x = 0;
- d[FS_MESSAGE].w = 1;
- d[FS_MESSAGE].x = width/2;
+ d[FS_MESSAGE].w = witdh - 2;
+ d[FS_MESSAGE].x = 1;
d[FS_EDIT].w = d[FS_FRAME].w - 2*hpad - 1;
d[FS_EDIT].x = hpad;
d[FS_CANCEL].w = 10*font_w + 1;
@@ -751,8 +751,8 @@ static void stretch_dialog(DIALOG *d, in
d[FS_FRAME].w = width;
d[FS_FRAME].x = 0;
- d[FS_MESSAGE].w = 1;
- d[FS_MESSAGE].x = width/2;
+ d[FS_MESSAGE].w = width - 2;
+ d[FS_MESSAGE].x = 1;
d[FS_EDIT].w = d[FS_FRAME].w - 2*hpad - 1;
d[FS_EDIT].x = hpad;
d[FS_FILES].w = d[FS_FRAME].w - 2*hpad;