Bit of readability
This commit is contained in:
parent
b92e6b391f
commit
e8c6b37550
11
src/main.c
11
src/main.c
@ -2074,13 +2074,16 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq)
|
if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq)
|
||||||
{
|
{
|
||||||
if(b & SDL_BUTTON_LMASK)
|
if(b & SDL_BUTTON_LMASK){
|
||||||
set_cmode((cmode+1) % CM_COUNT);
|
set_cmode((cmode+1) % CM_COUNT);
|
||||||
if(b & SDL_BUTTON_RMASK)
|
}
|
||||||
if((cmode+(CM_COUNT-1)) % CM_COUNT == CM_LIFE)
|
if(b & SDL_BUTTON_RMASK){
|
||||||
|
if((cmode+(CM_COUNT-1)) % CM_COUNT == CM_LIFE) {
|
||||||
set_cmode(CM_GRAD);
|
set_cmode(CM_GRAD);
|
||||||
else
|
} else {
|
||||||
set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
|
set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
|
||||||
|
}
|
||||||
|
}
|
||||||
save_presets(0);
|
save_presets(0);
|
||||||
}
|
}
|
||||||
if(x>=(XRES+BARSIZE-(510-494)) && x<=(XRES+BARSIZE-(510-509)) && !bq)
|
if(x>=(XRES+BARSIZE-(510-494)) && x<=(XRES+BARSIZE-(510-509)) && !bq)
|
||||||
|
Reference in New Issue
Block a user