small change of settings debug output
This commit is contained in:
parent
a9119f4856
commit
2b8bdcfd4b
@ -6,13 +6,9 @@
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
#define Slider_min 410
|
||||
#define Slider_max 790
|
||||
#define Slider_height 120
|
||||
#define Scalar_width 20
|
||||
#define Scalar_height Slider_height
|
||||
#define Bar_width 400
|
||||
#define Bar_height Slider_height
|
||||
|
||||
SDL_Texture* Setting_Texture;
|
||||
|
||||
@ -24,9 +20,9 @@ Slider BT;
|
||||
bool Settings_IsInit=false;
|
||||
|
||||
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(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");
|
||||
Settings_rect = (SDL_Rect){.x = 800, .y = 180, .w=313, .h=100};
|
||||
Settings_IsInit = true;
|
||||
@ -69,7 +65,6 @@ void Draw_Slider(SDL_Renderer* renderer,Slider* beta){
|
||||
}
|
||||
else{
|
||||
SDL_RenderDrawRect(renderer,&beta->Scalar_rect);
|
||||
printf("%f",beta->Slider_value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user