Skip to content

Commit

Permalink
canvas showcase works fine
Browse files Browse the repository at this point in the history
  • Loading branch information
wwagner4 committed Apr 9, 2016
1 parent d4ad06d commit 7b2d50f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jvm/src/main/scala/doctus/jvm/DoctusFx.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ case class DoctusGraphicsFx(gc: GraphicsContext) extends DoctusGraphics {
gc.moveTo(first.x, first.y)
rest.foreach { p => gc.lineTo(p.x, p.y) }
gc.closePath()
if (doFill) gc.fill()
if (doStroke) gc.stroke()
}
}

Expand Down Expand Up @@ -107,7 +109,7 @@ case class DoctusGraphicsFx(gc: GraphicsContext) extends DoctusGraphics {

def textSize(textSize: Double): Unit = {
val family = gc.getFont.getFamily
val size = gc.getFont.getSize
val size = textSize
gc.setFont(Font.font(family, size))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object ShowcaseJvmCanvas extends App {

override def start(stage: Stage) {

val width = 1000
val width = 800
val height = 700

val canvasFx = new Canvas(width, height);
Expand Down

0 comments on commit 7b2d50f

Please sign in to comment.