r49343 - in /desktop/experimental/gtk+3.0/debian: changelog patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch patches/series

pochu at users.alioth.debian.org pochu at users.alioth.debian.org
Wed Jul 20 20:29:15 UTC 2016


Author: pochu
Date: Wed Jul 20 20:29:15 2016
New Revision: 49343

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=49343
Log:
* d/p/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch:
  + New patch. Fix division by zero when running under Xvfb.

Added:
    desktop/experimental/gtk+3.0/debian/patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch
Modified:
    desktop/experimental/gtk+3.0/debian/changelog
    desktop/experimental/gtk+3.0/debian/patches/series

Modified: desktop/experimental/gtk+3.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/changelog?rev=49343&op=diff
==============================================================================
--- desktop/experimental/gtk+3.0/debian/changelog	[utf-8] (original)
+++ desktop/experimental/gtk+3.0/debian/changelog	[utf-8] Wed Jul 20 20:29:15 2016
@@ -7,6 +7,8 @@
       for wayland-protocols and glib.
   * debian/patches/wayland-add-extended-state-for-tiled.patch:
     + Dropped, included upstream.
+  * d/p/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch:
+    + New patch. Fix division by zero when running under Xvfb.
 
  -- Emilio Pozuelo Monfort <pochu at debian.org>  Mon, 18 Jul 2016 19:11:22 +0200
 

Added: desktop/experimental/gtk+3.0/debian/patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch?rev=49343&op=file
==============================================================================
--- desktop/experimental/gtk+3.0/debian/patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch	(added)
+++ desktop/experimental/gtk+3.0/debian/patches/0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch	[utf-8] Wed Jul 20 20:29:15 2016
@@ -0,0 +1,26 @@
+From 791a6a1835485a621d54f59f33f7bb9d56874200 Mon Sep 17 00:00:00 2001
+From: Emilio Pozuelo Monfort <pochu27 at gmail.com>
+Date: Wed, 20 Jul 2016 17:09:15 +0200
+Subject: [PATCH] Fix division by zero when calculating the refresh rate
+
+---
+ gdk/x11/gdkscreen-x11.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
+index 34dfccc..1916bb6 100644
+--- a/gdk/x11/gdkscreen-x11.c
++++ b/gdk/x11/gdkscreen-x11.c
+@@ -474,7 +474,8 @@ init_randr15 (GdkScreen *screen, gboolean *changed)
+               XRRModeInfo *xmode = &resources->modes[j];
+               if (xmode->id == crtc->mode)
+                 {
+-                  refresh_rate = (1000 * xmode->dotClock) / (xmode->hTotal *xmode->vTotal);
++                  if (xmode->hTotal && xmode->vTotal)
++                    refresh_rate = (1000 * xmode->dotClock) / (xmode->hTotal *xmode->vTotal);
+                   break;
+                 }
+             }
+-- 
+2.8.1
+

Modified: desktop/experimental/gtk+3.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gtk%2B3.0/debian/patches/series?rev=49343&op=diff
==============================================================================
--- desktop/experimental/gtk+3.0/debian/patches/series	[utf-8] (original)
+++ desktop/experimental/gtk+3.0/debian/patches/series	[utf-8] Wed Jul 20 20:29:15 2016
@@ -8,3 +8,4 @@
 no-accessibility-dump.patch
 reftest-known-fail.patch
 Don-t-apply-GDK_HINT_RESIZE_INC-to-GDK_WINDOW_STATE_.patch
+0001-Fix-division-by-zero-when-calculating-the-refresh-ra.patch




More information about the pkg-gnome-commits mailing list