mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
set the default dither algorithm as a fallback in case no algorithm
2003-03-11 Sven Neumann <sven@gimp.org> * plug-ins/print/gimp_color_window.c (gimp_dither_algo_callback): set the default dither algorithm as a fallback in case no algorithm matched. Seems to fix bug #102457. * plug-ins/print/gimp_main_window.c: fixed wrong display of paper border that was introduced by my latest changes to the preview code.
This commit is contained in:
parent
c65a2dd1af
commit
010551c0cb
|
@ -1,3 +1,12 @@
|
|||
2003-03-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/print/gimp_color_window.c (gimp_dither_algo_callback):
|
||||
set the default dither algorithm as a fallback in case no
|
||||
algorithm matched. Seems to fix bug #102457.
|
||||
|
||||
* plug-ins/print/gimp_main_window.c: fixed wrong display of paper
|
||||
border that was introduced by my latest changes to the preview code.
|
||||
|
||||
2003-03-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpimage.[ch]: made gimp_image_get_active_components()
|
||||
|
|
|
@ -85,12 +85,14 @@ gimp_dither_algo_callback (GtkWidget *widget,
|
|||
gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (dither_algo_combo)->entry));
|
||||
int i;
|
||||
|
||||
for (i = 0; i < stp_dither_algorithm_count (); i ++)
|
||||
for (i = 0; i < stp_dither_algorithm_count (); i++)
|
||||
if (strcasecmp (new_algo, stp_dither_algorithm_text (i)) == 0)
|
||||
{
|
||||
stp_set_dither_algorithm (*pv, stp_dither_algorithm_name (i));
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
stp_set_dither_algorithm (*pv, stp_default_dither_algorithm ());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -145,7 +145,7 @@ static gint suppress_preview_reset = 0;
|
|||
static gint printable_left; /* Left pixel column of page */
|
||||
static gint printable_top; /* Top pixel row of page */
|
||||
static gint printable_width; /* Width of page on screen */
|
||||
static gint printable_height; /* Height of page on screen */
|
||||
static gint printable_height;/* Height of page on screen */
|
||||
static gint print_width; /* Printed width of image */
|
||||
static gint print_height; /* Printed height of image */
|
||||
static gint left, right; /* Imageable area */
|
||||
|
@ -2887,8 +2887,6 @@ gimp_preview_update (void)
|
|||
gdouble min_ppi_scaling; /* Minimum PPI for current page size */
|
||||
gdouble min_ppi_scaling1; /* Minimum PPI for current page size */
|
||||
gdouble min_ppi_scaling2; /* Minimum PPI for current page size */
|
||||
gint paper_left;
|
||||
gint paper_top;
|
||||
gdouble unit_scaler = 72.0;
|
||||
|
||||
(stp_printer_get_printfuncs (current_printer)->media_size)
|
||||
|
@ -2933,29 +2931,29 @@ gimp_preview_update (void)
|
|||
|
||||
if (orient == ORIENT_LANDSCAPE)
|
||||
{
|
||||
temp = left;
|
||||
left = bottom;
|
||||
bottom = right;
|
||||
right = top;
|
||||
top = temp;
|
||||
temp = left;
|
||||
left = bottom;
|
||||
bottom = right;
|
||||
right = top;
|
||||
top = temp;
|
||||
}
|
||||
else
|
||||
{
|
||||
temp = left;
|
||||
left = top;
|
||||
top = right;
|
||||
right = bottom;
|
||||
bottom = temp;
|
||||
temp = left;
|
||||
left = top;
|
||||
top = right;
|
||||
right = bottom;
|
||||
bottom = temp;
|
||||
}
|
||||
}
|
||||
else if (orient == ORIENT_UPSIDEDOWN)
|
||||
{
|
||||
temp = left;
|
||||
left = right;
|
||||
right = temp;
|
||||
temp = top;
|
||||
top = bottom;
|
||||
bottom = temp;
|
||||
temp = left;
|
||||
left = right;
|
||||
right = temp;
|
||||
temp = top;
|
||||
top = bottom;
|
||||
bottom = temp;
|
||||
}
|
||||
|
||||
bottom = paper_height - bottom;
|
||||
|
|
Loading…
Reference in a new issue