Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/3334
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 2, 2021
1 parent 366c970 commit 1b3585f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions magick/widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,8 +1852,8 @@ MagickExport void XColorBrowserWidget(Display *display,XWindows *windows,
slider_info.bevel_width+2;
slider_info.height=scroll_info.height-((slider_info.min_y-
scroll_info.y+1) << 1)+4;
visible_colors=scroll_info.height*PerceptibleReciprocal((double) height+
(height >> 3));
visible_colors=(unsigned int) (scroll_info.height*
PerceptibleReciprocal((double) height+(height >> 3)));
if (colors > visible_colors)
slider_info.height=(unsigned int) ((visible_colors*
slider_info.height)/colors);
Expand Down Expand Up @@ -4459,10 +4459,11 @@ MagickExport void XFileBrowserWidget(Display *display,XWindows *windows,
slider_info.bevel_width+2;
slider_info.height=scroll_info.height-((slider_info.min_y-
scroll_info.y+1) << 1)+4;
visible_files=scroll_info.height/(height+(height >> 3));
visible_files=(unsigned int) (scroll_info.height*
PerceptibleReciprocal((double) height+(height >> 3)));
if (files > visible_files)
slider_info.height=(unsigned int)
((visible_files*slider_info.height)/files);
slider_info.height=(unsigned int) ((visible_files*
slider_info.height)/files);
slider_info.max_y=south_info.y-south_info.bevel_width-
slider_info.bevel_width-2;
slider_info.x=scroll_info.x+slider_info.bevel_width+1;
Expand Down

0 comments on commit 1b3585f

Please sign in to comment.