mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Use screen depth resolution in NetworkGraph plugin.
This commit is contained in:
parent
38923ed22b
commit
10f6fd64ff
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ class plugin_NetGraph:
|
||||||
self.width = allocation.width
|
self.width = allocation.width
|
||||||
self.height = allocation.height
|
self.height = allocation.height
|
||||||
|
|
||||||
self.networkPixmap = gtk.gdk.Pixmap(None, self.width, self.height, 24)
|
self.networkPixmap = gtk.gdk.Pixmap(None, self.width,
|
||||||
|
self.height, gtk.gdk.visual_get_system().depth)
|
||||||
self.image.set_from_pixmap(self.networkPixmap, None)
|
self.image.set_from_pixmap(self.networkPixmap, None)
|
||||||
self.ctx = self.networkPixmap.cairo_create()
|
self.ctx = self.networkPixmap.cairo_create()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue