From 5000e08dd6a499a2b241f9899765974dbe3ad205 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Thu, 1 Jun 2023 20:40:52 +0300 Subject: [PATCH] change default size to be more accurate --- src/configman.cr | 2 +- src/vec2.cr | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/configman.cr b/src/configman.cr index f75c1d3..936fcd1 100644 --- a/src/configman.cr +++ b/src/configman.cr @@ -14,7 +14,7 @@ module Funfriend::ConfigMan DEFAULT_CONFIG = { "window" => { - "funfriend_size" => 64.as(ConfigValue) + "funfriend_size" => 75.as(ConfigValue) }, "sound" => { "volume" => 0.2.as(ConfigValue) diff --git a/src/vec2.cr b/src/vec2.cr index da12966..628e1ae 100644 --- a/src/vec2.cr +++ b/src/vec2.cr @@ -153,11 +153,11 @@ module Funfriend self.x != other.x || self.y != other.y end - def to_s - "(#{x}, #{y})" + def to_s(io : IO) + io << "(#{x}, #{y})" end - def inspect - "(x: #{x.inspect}, y: #{y.inspect})" + def inspect(io : IO) + io << "(x: #{x.inspect}, y: #{y.inspect})" end def self.zero