small change of settings debug output

This commit is contained in:
Andreas Neumann 2018-01-20 11:04:07 +01:00
parent a9119f4856
commit 2b8bdcfd4b

View File

@ -6,13 +6,9 @@
#include "settings.h" #include "settings.h"
#define Slider_min 410
#define Slider_max 790
#define Slider_height 120 #define Slider_height 120
#define Scalar_width 20 #define Scalar_width 20
#define Scalar_height Slider_height
#define Bar_width 400 #define Bar_width 400
#define Bar_height Slider_height
SDL_Texture* Setting_Texture; SDL_Texture* Setting_Texture;
@ -24,9 +20,9 @@ Slider BT;
bool Settings_IsInit=false; bool Settings_IsInit=false;
void Settings_Initialize (SDL_Renderer* renderer) { void Settings_Initialize (SDL_Renderer* renderer) {
Initialize_Slider(400,300,Scalar_width,Bar_width,Scalar_height,&BV); Initialize_Slider(400,300,Scalar_width,Bar_width,Slider_height,&BV);
Initialize_Slider(450,520,40,600,60,&BS); Initialize_Slider(450,520,40,600,60,&BS);
Initialize_Slider(400,700,Scalar_width,Bar_width,Scalar_height,&BT); Initialize_Slider(400,700,Scalar_width,Bar_width,Slider_height,&BT);
Setting_Texture = IMG_LoadTexture(renderer, "assets/images/settings_title.png"); Setting_Texture = IMG_LoadTexture(renderer, "assets/images/settings_title.png");
Settings_rect = (SDL_Rect){.x = 800, .y = 180, .w=313, .h=100}; Settings_rect = (SDL_Rect){.x = 800, .y = 180, .w=313, .h=100};
Settings_IsInit = true; Settings_IsInit = true;
@ -69,7 +65,6 @@ void Draw_Slider(SDL_Renderer* renderer,Slider* beta){
} }
else{ else{
SDL_RenderDrawRect(renderer,&beta->Scalar_rect); SDL_RenderDrawRect(renderer,&beta->Scalar_rect);
printf("%f",beta->Slider_value);
} }
} }