File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments