From c40dd7abcc6f60bc3115c33b20f9c80c05377681 Mon Sep 17 00:00:00 2001 From: Andreas Neumann Date: Thu, 18 Jan 2018 16:11:43 +0100 Subject: [PATCH] Minor bug fixes --- settings.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/settings.c b/settings.c index b937eca..ea4baa7 100644 --- a/settings.c +++ b/settings.c @@ -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))){ SDL_RenderFillRect(renderer,&BV_Scalar_rect); SDL_RenderDrawRect(renderer,&BV_Scalar_rect); - if(x>780){ + if(x>790){ BV_Scalar_rect.x=780; } + else if(x<410){ + BV_Scalar_rect.x=400; + } else{ - BV_Scalar_rect.x=x; + BV_Scalar_rect.x=x-10; } } else{