Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / Bug in gosu
- - By D3nX Date 2018-01-09 17:40

So last days, I've been writing some game using Ruby and Gosu (latest version of Gosu, using Ruby 2.3.3 on Windows 7 Professional SP1), and I found a bug :

This code, should draw a white line on screen :

require 'gosu'

include Gosu

class Game < Gosu::Window
  def initialize()
    super 640, 480, false

  def update()


  def draw()
    img = Gosu.record(self.width, self.height) do
      Gosu.draw_line(150, 150, Color::WHITE, 250, 180, Color::WHITE)

    img.draw(0, 0, 0)

But the output I got is this :

(And the color can change when I do nothing or if click on this window or another window)

So I hope jlnr will fix this issue =)

D3nX =)
Parent - By lol_o2 Date 2018-01-09 20:05
This is a known issue: (2015, lol)
You need to draw lines using quads or 1-pixel images etc. if you want to record it.
Up Topic Gosu / Gosu Exchange / Bug in gosu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill