Committed my patch #2216641 "GRAPHICS: PixelFormat introduction".
svn-id: r34875
This commit is contained in:
parent
d0c9b0cb23
commit
985c02ee7d
8 changed files with 108 additions and 12 deletions
|
@ -118,7 +118,7 @@ static bool grabScreen565(Graphics::Surface *surf) {
|
|||
g = palette[((uint8*)screen->pixels)[y * screen->pitch + x] * 4 + 1];
|
||||
b = palette[((uint8*)screen->pixels)[y * screen->pitch + x] * 4 + 2];
|
||||
|
||||
((uint16*)surf->pixels)[y * surf->w + x] = RGBToColor<ColorMasks<565> >(r, g, b);
|
||||
((uint16*)surf->pixels)[y * surf->w + x] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ bool createThumbnail(Graphics::Surface *surf, const uint8 *pixels, int w, int h,
|
|||
g = palette[pixels[y * w + x] * 3 + 1];
|
||||
b = palette[pixels[y * w + x] * 3 + 2];
|
||||
|
||||
((uint16 *)screen.pixels)[y * screen.w + x] = RGBToColor<ColorMasks<565> >(r, g, b);
|
||||
((uint16 *)screen.pixels)[y * screen.w + x] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(r, g, b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue