Fix RGBA color interpretation for GameBoyAdvance

Этот коммит содержится в:
Agurato 2021-04-11 16:05:48 +02:00 коммит произвёл Ron Evans
родитель ae59e7703e
коммит e6d5c26df5

Просмотреть файл

@ -54,7 +54,7 @@ func (d FramebufDisplay) Size() (x, y int16) {
} }
func (d FramebufDisplay) SetPixel(x, y int16, c color.RGBA) { func (d FramebufDisplay) SetPixel(x, y int16, c color.RGBA) {
d.port[y][x].Set(uint16(c.R)&0x1f | uint16(c.G)&0x1f<<5 | uint16(c.B)&0x1f<<10) d.port[y][x].Set((uint16(c.R) >> 3) | ((uint16(c.G) >> 3) << 5) | ((uint16(c.B) >> 3) << 10))
} }
func (d FramebufDisplay) Display() error { func (d FramebufDisplay) Display() error {