Skip to content

将全局数组hist改为成员指针变量,修复了多个palette同时工作时颜色混乱的bug#16

Open
LukeChow wants to merge 1 commit intotangdiforx:masterfrom
LukeChow:master
Open

将全局数组hist改为成员指针变量,修复了多个palette同时工作时颜色混乱的bug#16
LukeChow wants to merge 1 commit intotangdiforx:masterfrom
LukeChow:master

Conversation

@LukeChow
Copy link

@LukeChow LukeChow commented Apr 2, 2021

hist如果是全局数组,当多个palette同时工作时取出的颜色就不正确,将其改为成员指针变量,在palette初始化时用malloc初始化hist,并传给其他需要的对象即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant