From 4229dc260c45aef3ac5e4c7a6fd3943ed41c84c5 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 8 Jul 2020 15:42:59 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'framebuffer.go'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framebuffer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/framebuffer.go b/framebuffer.go index 6de4790..f2f259c 100644 --- a/framebuffer.go +++ b/framebuffer.go @@ -122,8 +122,6 @@ func (f *Framebuffer) SetPixel(x int, y int, r uint32, g uint32, b uint32, a uin location := (x+f.Xoffset)*(f.BitsPerPixel/8) + (y+f.Yoffset)*f.LineLength - fmt.Println("location :: ", location, " / data len:: ", len(f.Data)) - f.Data[location+3] = byte(a & 0xff) f.Data[location+2] = byte(r & 0xff) f.Data[location+1] = byte(g & 0xff)