From 19b1a307e7b81e274351709bf50c4bd3a869d898 Mon Sep 17 00:00:00 2001 From: elasota Date: Sun, 25 Apr 2021 22:07:04 -0400 Subject: [PATCH] EOL fix --- PortabilityLayer/RGBAColor.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/PortabilityLayer/RGBAColor.h b/PortabilityLayer/RGBAColor.h index fa907f2..145dc5f 100644 --- a/PortabilityLayer/RGBAColor.h +++ b/PortabilityLayer/RGBAColor.h @@ -1,39 +1,39 @@ -#pragma once - -#include - -namespace PortabilityLayer -{ - struct RGBAColor - { +#pragma once + +#include + +namespace PortabilityLayer +{ + struct RGBAColor + { uint8_t r, g, b, a; bool operator==(const RGBAColor &other) const; bool operator!=(const RGBAColor &other) const; static RGBAColor Create(uint8_t r, uint8_t g, uint8_t b, uint8_t a); - uint32_t AsUInt32() const; + uint32_t AsUInt32() const; }; inline RGBAColor RGBAColor::Create(uint8_t r, uint8_t g, uint8_t b, uint8_t a) - { + { RGBAColor color; color.r = r; color.g = g; color.b = b; color.a = a; - return color; + return color; } inline bool RGBAColor::operator==(const RGBAColor &other) const - { - return this->r == other.r && this->g == other.g && this->b == other.b && this->a == other.a; - } + { + return this->r == other.r && this->g == other.g && this->b == other.b && this->a == other.a; + } inline bool RGBAColor::operator!=(const RGBAColor &other) const - { - return !((*this) == other); + { + return !((*this) == other); } inline uint32_t RGBAColor::AsUInt32() const @@ -46,4 +46,4 @@ namespace PortabilityLayer rgbaColorBytes[3] = a; return rgbaColor; } -} +}