Minor bug fixes

This commit is contained in:
Andreas Neumann 2018-01-18 16:11:43 +01:00
parent 168d70e873
commit c40dd7abcc

View File

@ -37,11 +37,14 @@ void Settings_Draw (SDL_Renderer* renderer) {
if(y<=400&&y>=300&&x<=800&&x>=400&&(Mousestate & SDL_BUTTON(SDL_BUTTON_LEFT))){ if(y<=400&&y>=300&&x<=800&&x>=400&&(Mousestate & SDL_BUTTON(SDL_BUTTON_LEFT))){
SDL_RenderFillRect(renderer,&BV_Scalar_rect); SDL_RenderFillRect(renderer,&BV_Scalar_rect);
SDL_RenderDrawRect(renderer,&BV_Scalar_rect); SDL_RenderDrawRect(renderer,&BV_Scalar_rect);
if(x>780){ if(x>790){
BV_Scalar_rect.x=780; BV_Scalar_rect.x=780;
} }
else if(x<410){
BV_Scalar_rect.x=400;
}
else{ else{
BV_Scalar_rect.x=x; BV_Scalar_rect.x=x-10;
} }
} }
else{ else{