Skip to content

Commit 93f622e

Browse files
committed
cleanup code format
1 parent 047b15c commit 93f622e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Src/Graphics/Shaders2D.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ static const char s_fragmentShaderTileGen[] = R"glsl(
189189

190190
// register data
191191
bool LineScrollMode (int layerNum) { return (regs[0x60/4 + layerNum] & 0x8000u) != 0; }
192-
int GetHorizontalScroll(int layerNum) { return int(regs[0x60/4 + layerNum] & 0x3FFu); }
193-
int GetVerticalScroll (int layerNum) { return int((regs[0x60/4 + layerNum] >> 16) & 0x1FFu); }
194-
int LayerPriority () { return int((regs[0x20/4] >> 8) & 0xFu); }
195-
bool LayerIs4Bit (int layerNum) { return (regs[0x20/4] & uint(1 << (12 + layerNum))) != 0; }
196-
bool LayerEnabled (int layerNum) { return (regs[0x60/4 + layerNum] & 0x80000000u) != 0; }
197-
bool LayerSelected (int layerNum) { return (LayerPriority() & (1 << layerNum)) == 0; }
192+
int GetHorizontalScroll (int layerNum) { return int(regs[0x60/4 + layerNum] & 0x3FFu); }
193+
int GetVerticalScroll (int layerNum) { return int((regs[0x60/4 + layerNum] >> 16) & 0x1FFu); }
194+
int LayerPriority () { return int((regs[0x20/4] >> 8) & 0xFu); }
195+
bool LayerIs4Bit (int layerNum) { return (regs[0x20/4] & uint(1 << (12 + layerNum))) != 0; }
196+
bool LayerEnabled (int layerNum) { return (regs[0x60/4 + layerNum] & 0x80000000u) != 0; }
197+
bool LayerSelected (int layerNum) { return (LayerPriority() & (1 << layerNum)) == 0; }
198198

199199
float Int8ToFloat(uint c)
200200
{

0 commit comments

Comments
 (0)