Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
v1.7.3 - fix palette gradients
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciss committed Nov 25, 2015
1 parent 8726a79 commit 364267b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ lazy val baseNameL = baseName.toLowerCase

lazy val commonSettings = Seq(
name := baseName,
version := "1.7.2",
version := "1.7.3",
organization := "at.iem.sysson",
description := "Sonification platform of the IEM SysSon project",
homepage := Some(url(s"https://github.com/iem-projects/$baseNameL")),
Expand Down
2 changes: 1 addition & 1 deletion src/debian/SysSon.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Desktop Entry]
Name=SysSon
Version=1.7.2
Version=1.7.3
GenericName=SysSon
Comment=SysSon Sonification Environment
Exec=/usr/share/sysson/bin/sysson
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/at/iem/sysson/gui/impl/PlotChartImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,10 @@ object PlotChartImpl {

def paintIcon(c: awt.Component, g: Graphics, x: Int, y: Int): Unit = {
if (palette == null) return
val paint = ColorPaletteTable.toPaint(palette)
val paint = ColorPaletteTable.toPaint(palette, startX = x, endX = x + getIconWidth)
val g2 = g.asInstanceOf[Graphics2D]
g2.setPaint(paint)
g2.fillRect(x, y, 64, 16)
g2.fillRect(x, y, getIconWidth, getIconHeight)
}
}

Expand Down

0 comments on commit 364267b

Please sign in to comment.