Skip to content

Commit 0cde40a

Browse files
committed
honor board image size config
1 parent 441f29f commit 0cde40a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/game/src/main/PngExport.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ final class PngExport(url: String, size: Int) {
2222
orientation: Option[chess.Color],
2323
logHint: => String): Fu[Enumerator[Array[Byte]]] = {
2424

25-
val queryString =
26-
("fen" -> fen.value.takeWhile(' ' !=)) :: List(
25+
val queryString = List(
26+
"fen" -> fen.value.takeWhile(' ' !=),
27+
"size" -> size.toString
28+
) ::: List(
2729
lastMove.map { "lastMove" -> _ },
2830
check.map { "check" -> _.key },
2931
orientation.map { "orientation" -> _.name }

0 commit comments

Comments
 (0)