Deal with some -Wall warnings
This commit is contained in:
		
							parent
							
								
									4da1c6d868
								
							
						
					
					
						commit
						bdb228653e
					
				@ -45,7 +45,7 @@ void handleKeyPress(Input *input, int c) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void handle_pressed_keys(Input *input) {
 | 
					void handle_pressed_keys(Input *input) {
 | 
				
			||||||
  int c;
 | 
					  int c;
 | 
				
			||||||
  while(c = GetKeyPressed()) {
 | 
					  while((c = GetKeyPressed())) {
 | 
				
			||||||
    handleKeyPress(input, c);
 | 
					    handleKeyPress(input, c);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -57,7 +57,7 @@ void draw_prompt(Input *input) {
 | 
				
			|||||||
void draw_text(Input *input) {
 | 
					void draw_text(Input *input) {
 | 
				
			||||||
  draw_prompt(input);
 | 
					  draw_prompt(input);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  int text_width = MeasureText(input->input_buffer, 20);
 | 
					  // int text_width = MeasureText(input->input_buffer, 20);
 | 
				
			||||||
  DrawText(
 | 
					  DrawText(
 | 
				
			||||||
	   input->input_buffer,
 | 
						   input->input_buffer,
 | 
				
			||||||
	   input->position.x + 20,
 | 
						   input->position.x + 20,
 | 
				
			||||||
 | 
				
			|||||||
@ -8,8 +8,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#define TARGET_FPS 60
 | 
					#define TARGET_FPS 60
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main(void)
 | 
					int main(void) {
 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    InitWindow(800, 450, "Text Adventure");
 | 
					    InitWindow(800, 450, "Text Adventure");
 | 
				
			||||||
    SetTargetFPS(TARGET_FPS);
 | 
					    SetTargetFPS(TARGET_FPS);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user