X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fsdl.c;h=e573d3637458592d200bcb56afcf9e1064ce5321;hb=adebc3d223c1611d7c947adba6a8b34885033aec;hp=c37cbff15bc4f2f6174ade0c19d6d16be40e9015;hpb=74b5b6c19587f93c45b72b1153154030dc99b50d;p=rocksndiamonds.git diff --git a/src/sdl.c b/src/sdl.c index c37cbff1..e573d363 100644 --- a/src/sdl.c +++ b/src/sdl.c @@ -62,9 +62,9 @@ inline void SDLDrawSimpleLine(SDL_Surface *surface, int from_x, int from_y, int to_x, int to_y, unsigned int color) { SDL_Rect rect; - unsigned int color_r = (color >> 2) && 0xff; - unsigned int color_g = (color >> 1) && 0xff; - unsigned int color_b = (color >> 0) && 0xff; + unsigned int color_r = (color >> 2) & 0xff; + unsigned int color_g = (color >> 1) & 0xff; + unsigned int color_b = (color >> 0) & 0xff; if (from_x > to_x) swap_numbers(&from_x, &to_x);