summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/glwrapper.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-14 17:21:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-15 21:03:43 +0100
commit04ab49bde8bfadd87c7897b3319238b1da561812 (patch)
treeafd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/glwrapper.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/glwrapper.cc')
-rw-r--r--crawl-ref/source/glwrapper.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/crawl-ref/source/glwrapper.cc b/crawl-ref/source/glwrapper.cc
index 1790267e85..ae46568ecf 100644
--- a/crawl-ref/source/glwrapper.cc
+++ b/crawl-ref/source/glwrapper.cc
@@ -13,12 +13,12 @@ VColour VColour::transparent(0, 0, 0, 0);
bool VColour::operator==(const VColour &vc) const
{
- return (r == vc.r && g == vc.g && b == vc.b && a == vc.a);
+ return r == vc.r && g == vc.g && b == vc.b && a == vc.a;
}
bool VColour::operator!=(const VColour &vc) const
{
- return (r != vc.r || g != vc.g || b != vc.b || a != vc.a);
+ return r != vc.r || g != vc.g || b != vc.b || a != vc.a;
}
/////////////////////////////////////////////////////////////////////////////
@@ -68,15 +68,15 @@ const GLState &GLState::operator=(const GLState &state)
bool GLState::operator==(const GLState &state) const
{
- return (array_vertex == state.array_vertex
- && array_texcoord == state.array_texcoord
- && array_colour == state.array_colour
- && blend == state.blend
- && texture == state.texture
- && depthtest == state.depthtest
- && alphatest == state.alphatest
- && alpharef == state.alpharef
- && colour == state.colour);
+ return array_vertex == state.array_vertex
+ && array_texcoord == state.array_texcoord
+ && array_colour == state.array_colour
+ && blend == state.blend
+ && texture == state.texture
+ && depthtest == state.depthtest
+ && alphatest == state.alphatest
+ && alpharef == state.alpharef
+ && colour == state.colour;
}
/////////////////////////////////////////////////////////////////////////////
@@ -88,9 +88,9 @@ bool GLStateManager::_valid(int num_verts, drawing_modes mode)
switch (mode)
{
case GLW_RECTANGLE:
- return (num_verts % 4 == 0);
+ return num_verts % 4 == 0;
case GLW_LINES:
- return (num_verts % 2 == 0);
+ return num_verts % 2 == 0;
default:
return false;
}