small changes

main
Dominik Madarász 2024-07-29 09:20:33 +02:00
parent 3da7e9ffa3
commit 3328cad3e0
3 changed files with 9 additions and 3 deletions

View File

@ -385438,7 +385438,9 @@ void fx_enable(int pass, int enabled) {
postfx_enable(&fx, pass, enabled); postfx_enable(&fx, pass, enabled);
} }
void fx_enable_all(int enabled) { void fx_enable_all(int enabled) {
for( int i = 0; i < array_count(fx.pass); ++i ) fx_enable(i, enabled); for( int i = 0; i < array_count(fx.pass); ++i ) {
fx_enable(i, enabled);
}
} }
char *fx_name(int pass) { char *fx_name(int pass) {
return postfx_name(&fx, pass); return postfx_name(&fx, pass);

View File

@ -2789,7 +2789,9 @@ void fx_enable(int pass, int enabled) {
postfx_enable(&fx, pass, enabled); postfx_enable(&fx, pass, enabled);
} }
void fx_enable_all(int enabled) { void fx_enable_all(int enabled) {
for( int i = 0; i < array_count(fx.pass); ++i ) fx_enable(i, enabled); for( int i = 0; i < array_count(fx.pass); ++i ) {
fx_enable(i, enabled);
}
} }
char *fx_name(int pass) { char *fx_name(int pass) {
return postfx_name(&fx, pass); return postfx_name(&fx, pass);

View File

@ -19962,7 +19962,9 @@ void fx_enable(int pass, int enabled) {
postfx_enable(&fx, pass, enabled); postfx_enable(&fx, pass, enabled);
} }
void fx_enable_all(int enabled) { void fx_enable_all(int enabled) {
for( int i = 0; i < array_count(fx.pass); ++i ) fx_enable(i, enabled); for( int i = 0; i < array_count(fx.pass); ++i ) {
fx_enable(i, enabled);
}
} }
char *fx_name(int pass) { char *fx_name(int pass) {
return postfx_name(&fx, pass); return postfx_name(&fx, pass);