mirror of
				https://github.com/Tha14/toxic.git
				synced 2025-10-31 13:06:53 +01:00 
			
		
		
		
	Update help dialog height to fit the new commands
Made the "global" and "chat" help pages fit properly in the dialog again. I also made the logic for deciding height for the chat page consistent with the other pages.
This commit is contained in:
		
							
								
								
									
										13
									
								
								src/help.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/help.c
									
									
									
									
									
								
							| @@ -433,18 +433,21 @@ void help_onKey(ToxWindow *self, wint_t key) | ||||
|             break; | ||||
|  | ||||
|         case L'c': | ||||
|             height = 12; | ||||
| #ifdef VIDEO | ||||
|             help_init_window(self, 26, 80); | ||||
|             height += 15; | ||||
| #elif AUDIO | ||||
|             help_init_window(self, 21, 80); | ||||
| #else | ||||
|             help_init_window(self, 13, 80); | ||||
|             height += 5; | ||||
| #endif | ||||
| #ifdef GAMES | ||||
|             height += 1; | ||||
| #endif | ||||
|             help_init_window(self, height, 80); | ||||
|             self->help->type = HELP_CHAT; | ||||
|             break; | ||||
|  | ||||
|         case L'g': | ||||
|             height = 23; | ||||
|             height = 24; | ||||
| #ifdef VIDEO | ||||
|             height += 8; | ||||
| #elif AUDIO | ||||
|   | ||||
		Reference in New Issue
	
	Block a user