Added info on Grow/Shrink to docs. More playing with hq4x before bedtime.
This commit is contained in:
parent
8ab8165e6b
commit
e65e4799f9
6 changed files with 31 additions and 11 deletions
|
|
@ -89,6 +89,9 @@ Uint16 hqxx_getpixel(SDL_Surface * surface, int x, int y, Uint8 * alpha)
|
|||
SDL_GetRGBA(pixel, surface->format, &r, &g, &b, alpha);
|
||||
|
||||
|
||||
/* (Perhaps reducing the number of colors by chopping off the bottoms of
|
||||
R, G and B will help?) */
|
||||
|
||||
pixel16 = ((r >> 3) << 11) | ((g >> 2) << 5) | (b >> 3);
|
||||
|
||||
return pixel16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue