Skip to content

Commit

Permalink
Reverted parentheses in operators
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Dec 30, 2023
1 parent c18a199 commit 488ac28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<P ` _: :+' .' "{[
* .)j(] .d_/ '-( P . S
Expand Down Expand Up @@ -74,9 +74,9 @@ namespace gcn

Color::Color(int color)
:
r(color >> 16 & 0xFF),
g(color >> 8 & 0xFF),
b(color >> 8 & 0xFF),
r((color >> 16) & 0xFF),
g((color >> 8) & 0xFF),
b((color >> 8) & 0xFF),
a(255)
{

Expand Down
12 changes: 6 additions & 6 deletions src/sdl/sdlgraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<P ` _: :+' .' "{[
* .)j(] .d_/ '-( P . S
Expand Down Expand Up @@ -429,8 +429,8 @@ namespace gcn
if(SDL_BYTEORDER == SDL_BIG_ENDIAN) {
for (;y1 <= y2; ++y1)
{
p[0] = pixel >> 16 & 0xff;
p[1] = pixel >> 8 & 0xff;
p[0] = (pixel >> 16) & 0xff;
p[1] = (pixel >> 8) & 0xff;
p[2] = pixel & 0xff;
p += mTarget->pitch;
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 488ac28

Please sign in to comment.