Browse Source

Rene Rebe:

* fixed ploticus gridblock drawing (patch already sent upstream)




git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3158 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 20 years ago
parent
commit
7bb55b6e0e
1 changed files with 41 additions and 0 deletions
  1. +41
    -0
      package/rene/ploticus/axis-gridblocks.patch

+ 41
- 0
package/rene/ploticus/axis-gridblocks.patch

@ -0,0 +1,41 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/rene/ploticus/axis-gridblocks.patch
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
This fixes (workarounds) gridblock drawing. The original code drew the
whole area, and then started at the top overdrawing the first block and
thus missing one at the button (or reversed if reversed ...).
This changes the behaviour to always draw downwards (or reversed) and thus
at least yielding the correct gridblocks - although the performance is
bad (many block fills ...).
- Rene Rebe <rene@rocklinux.org>
diff -ur pl221src/src/proc_axis.c pl221src-fixed/src/proc_axis.c
--- pl221src/src/proc_axis.c 2004-05-11 21:11:53.000000000 +0200
+++ pl221src-fixed/src/proc_axis.c 2004-06-04 18:50:19.000000000 +0200
@@ -937,7 +937,7 @@
Ecblock( glemin, gbylast, glemax, Ea( Y, y ), gbcolor2, 0 );
gbstate = 0;
}
- gbylast = Ea( Y, y );
+ /* gbylast = Ea( Y, y ); */
}
else {
linedet( "grid", grid, 0.5 );

Loading…
Cancel
Save