From 488ac28d8d5b5f34df5b7340a729bb6806b49b48 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sat, 30 Dec 2023 21:59:58 +0100 Subject: [PATCH] Reverted parentheses in operators --- src/color.cpp | 10 +++++----- src/sdl/sdlgraphics.cpp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/color.cpp b/src/color.cpp index 46c953b..f74d9b8 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -6,11 +6,11 @@ * /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ / * \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/ * - * Copyright (c) 2004, 2005, 2006, 2007 Olof Naessén and Per Larsson + * Copyright (c) 2004, 2005, 2006, 2007 Olof Naess�n and Per Larsson * * Js_./ * Per Larsson a.k.a finalman _RqZ{a<^_aa - * Olof Naessén a.k.a jansem/yakslem _asww7!uY`> )\a// + * Olof Naess�n a.k.a jansem/yakslem _asww7!uY`> )\a// * _Qhm`] _f "'c 1!5m * Visit: http://guichan.darkbits.org )Qk

> 16 & 0xFF), - g(color >> 8 & 0xFF), - b(color >> 8 & 0xFF), + r((color >> 16) & 0xFF), + g((color >> 8) & 0xFF), + b((color >> 8) & 0xFF), a(255) { diff --git a/src/sdl/sdlgraphics.cpp b/src/sdl/sdlgraphics.cpp index 336a3d6..d52e0e3 100644 --- a/src/sdl/sdlgraphics.cpp +++ b/src/sdl/sdlgraphics.cpp @@ -6,11 +6,11 @@ * /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ / * \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/ * - * Copyright (c) 2004, 2005, 2006, 2007 Olof Naessén and Per Larsson + * Copyright (c) 2004, 2005, 2006, 2007 Olof Naess�n and Per Larsson * * Js_./ * Per Larsson a.k.a finalman _RqZ{a<^_aa - * Olof Naessén a.k.a jansem/yakslem _asww7!uY`> )\a// + * Olof Naess�n a.k.a jansem/yakslem _asww7!uY`> )\a// * _Qhm`] _f "'c 1!5m * Visit: http://guichan.darkbits.org )Qk

> 16 & 0xff; - p[1] = pixel >> 8 & 0xff; + p[0] = (pixel >> 16) & 0xff; + p[1] = (pixel >> 8) & 0xff; p[2] = pixel & 0xff; p += mTarget->pitch; } @@ -440,8 +440,8 @@ namespace gcn for (;y1 <= y2; ++y1) { p[0] = pixel & 0xff; - p[1] = pixel >> 8 & 0xff; - p[2] = pixel >> 16 & 0xff; + p[1] = (pixel >> 8) & 0xff; + p[2] = (pixel >> 16) & 0xff; p += mTarget->pitch; } }