http://bugzilla.gnome.org/show_bug.cgi?id=85224 clamp to avoid underflow
2002-06-18 Jody Goldberg <jody@gnome.org> http://bugzilla.gnome.org/show_bug.cgi?id=85224 * applier.c (render_wallpaper) : clamp to avoid underflow
This commit is contained in:
parent
5654a0eb75
commit
e15d737a93
5 changed files with 20 additions and 12 deletions
|
@ -3,11 +3,6 @@
|
||||||
* gnome-settings-daemon/Makefile.am: commented lines ending in a
|
* gnome-settings-daemon/Makefile.am: commented lines ending in a
|
||||||
trailing backslash are not a good idea.
|
trailing backslash are not a good idea.
|
||||||
|
|
||||||
2002-06-21 Satyajit Kanungo <satyajit.kanungo@wipro.com>
|
|
||||||
|
|
||||||
* capplets/accessibility/keyboard/gnome-accessibility-keyboard-properties.c :
|
|
||||||
Changed the help link to point to the correct document (#85895)
|
|
||||||
|
|
||||||
2002-06-18 jacob berkman <jacob@ximian.com>
|
2002-06-18 jacob berkman <jacob@ximian.com>
|
||||||
|
|
||||||
* configure.in:
|
* configure.in:
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-06-21 Satyajit Kanungo <satyajit.kanungo@wipro.com>
|
||||||
|
|
||||||
|
* gnome-accessibility-keyboard-properties.c :
|
||||||
|
Changed the help link to point to the correct document (#85895)
|
||||||
|
|
||||||
2002-06-10 Jody Goldberg <jody@gnome.org>
|
2002-06-10 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* accessibility-keyboard.c : tweak the layout as requested and adjust
|
* accessibility-keyboard.c : tweak the layout as requested and adjust
|
||||||
|
|
|
@ -37,14 +37,12 @@ dialog_response (GtkWidget *widget,
|
||||||
gint response_id,
|
gint response_id,
|
||||||
GConfChangeSet *changeset)
|
GConfChangeSet *changeset)
|
||||||
{
|
{
|
||||||
if (response_id == GTK_RESPONSE_HELP) {
|
if (response_id == GTK_RESPONSE_HELP)
|
||||||
capplet_help (GTK_WINDOW (widget),
|
capplet_help (GTK_WINDOW (widget),
|
||||||
"wgoscustaccess.xml",
|
"wgoscustaccess.xml",
|
||||||
"goscustaccess-2");
|
"goscustaccess-2");
|
||||||
}
|
else
|
||||||
else {
|
|
||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2002-06-18 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
|
http://bugzilla.gnome.org/show_bug.cgi?id=85224
|
||||||
|
* applier.c (render_wallpaper) : clamp to avoid underflow
|
||||||
|
|
||||||
2002-06-17 Jody Goldberg <jody@gnome.org>
|
2002-06-17 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* Release 2.0.0
|
* Release 2.0.0
|
||||||
|
|
|
@ -695,10 +695,15 @@ render_wallpaper (BGApplier *bg_applier, const BGPreferences *prefs)
|
||||||
|
|
||||||
if (prefs->wallpaper_type == WPTYPE_TILED) {
|
if (prefs->wallpaper_type == WPTYPE_TILED) {
|
||||||
if (dest_geom.width != pwidth || dest_geom.height != pheight) {
|
if (dest_geom.width != pwidth || dest_geom.height != pheight) {
|
||||||
|
int hscale = pwidth * bg_applier->p->render_geom.width / virtual_geom.width;
|
||||||
|
int vscale = pheight * bg_applier->p->render_geom.height / virtual_geom.height;
|
||||||
|
|
||||||
|
if (hscale < 1) hscale = 1;
|
||||||
|
if (vscale < 1) vscale = 1;
|
||||||
|
|
||||||
|
pheight * bg_applier->p->render_geom.height / virtual_geom.height,
|
||||||
prescaled_pixbuf = gdk_pixbuf_scale_simple
|
prescaled_pixbuf = gdk_pixbuf_scale_simple
|
||||||
(bg_applier->p->wallpaper_pixbuf,
|
(bg_applier->p->wallpaper_pixbuf, hscale, vscale,
|
||||||
pwidth * bg_applier->p->render_geom.width / virtual_geom.width,
|
|
||||||
pheight * bg_applier->p->render_geom.height / virtual_geom.height,
|
|
||||||
GDK_INTERP_BILINEAR);
|
GDK_INTERP_BILINEAR);
|
||||||
} else {
|
} else {
|
||||||
prescaled_pixbuf = bg_applier->p->wallpaper_pixbuf;
|
prescaled_pixbuf = bg_applier->p->wallpaper_pixbuf;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue