mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
deal with possible endianness problems in bitmap tests #1627
This commit is contained in:
parent
6a2ed461df
commit
2d7019c726
@ -74,7 +74,7 @@ std::vector<uint32_t> sixel_to_rgb(const char* s, int dimy, int dimx) {
|
||||
b += *s - '0';
|
||||
++s;
|
||||
}while(isdigit(*s));
|
||||
uint32_t rgb = 0xff000000 + (r << 16u) * 255 / 100 + (g << 8u) * 255 / 100 + b * 255 / 100;
|
||||
uint32_t rgb = htole(0xff000000 + (r << 16u) * 255 / 100 + (g << 8u) * 255 / 100 + b * 255 / 100);
|
||||
//std::cerr << "Got color " << color << ": " << r << "/" << g << "/" << b << std::endl;
|
||||
if(color >= colors.capacity()){
|
||||
colors.resize(color + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user