From 76ffb781ed7a917f23b67454e9f950e5e3b83527 Mon Sep 17 00:00:00 2001 From: bicatali Date: Mon, 17 Mar 2008 16:21:32 +0000 Subject: moved overlay to new directory git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@979 32389bae-6d03-0410-99cf-db05cde120eb --- .../gerbv/files/gerbv-1.0.0-Xinerama.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 sci-electronics/gerbv/files/gerbv-1.0.0-Xinerama.patch (limited to 'sci-electronics/gerbv/files/gerbv-1.0.0-Xinerama.patch') diff --git a/sci-electronics/gerbv/files/gerbv-1.0.0-Xinerama.patch b/sci-electronics/gerbv/files/gerbv-1.0.0-Xinerama.patch new file mode 100644 index 000000000..40e296b8c --- /dev/null +++ b/sci-electronics/gerbv/files/gerbv-1.0.0-Xinerama.patch @@ -0,0 +1,44 @@ +diff -ur gerbv-1.0.0/ChangeLog gerbv-1.0.0.new/ChangeLog +--- gerbv-1.0.0/ChangeLog 2004-12-27 23:31:10.000000000 +0000 ++++ gerbv-1.0.0.new/ChangeLog 2005-01-02 01:54:21.074734456 +0000 +@@ -269,6 +269,10 @@ + * src/gerber.c: Doesn't warn anymore if a gerber file requests an + image rotate on zero degrees. Reported by Balaji V. + ++2003-03-03 Jeffrey W. Baker ++ ++ * src/gerbv.c: fix initial window size for multihead systems. ++ + 2003-03-02 Stefan Petersen + + * src/draw_amacro.c: Aperture macro primitive 1 is a filled circle. +diff -ur gerbv-1.0.0/src/gerbv.c gerbv-1.0.0.new/src/gerbv.c +--- gerbv-1.0.0/src/gerbv.c 2004-09-24 20:12:25.000000000 +0100 ++++ gerbv-1.0.0.new/src/gerbv.c 2005-01-02 01:53:21.241830440 +0000 +@@ -2485,7 +2485,7 @@ + GtkWidget *hbox; + GtkWidget *menubar; + GtkStyle *textStyle; +- gint screen_width, width, height; ++ gint width, height; + int read_opt; + int i; + int req_width = -1, req_height = -1, req_x = 0, req_y = 0; +@@ -2611,9 +2610,14 @@ + width = req_width; + height = req_height; + } else { +- screen_width = gdk_screen_width(); +- width = screen_width * 3/4; +- height = width * 3/4; ++ GdkScreen *screen; ++ int nmonitors; ++ ++ screen = gdk_screen_get_default(); ++ nmonitors = gdk_screen_get_n_monitors(screen); ++ ++ width = gdk_screen_get_width(screen) * 3/4 / nmonitors; ++ height = gdk_screen_get_height(screen) * 3/4 / nmonitors; + } + + /* -- cgit v1.2.3-65-gdbad