mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge branch 'master' into next
This commit is contained in:
		
						commit
						59a97a01b9
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1531,6 +1531,10 @@ boolean M_ScreenshotResponder(event_t *ev)
 | 
			
		|||
		return false;
 | 
			
		||||
 | 
			
		||||
	ch = ev->data1;
 | 
			
		||||
 | 
			
		||||
	if (ch >= KEY_MOUSE1 && menuactive) // If it's not a keyboard key, then don't allow it in the menus!
 | 
			
		||||
		return false;
 | 
			
		||||
 | 
			
		||||
	if (ch == KEY_F8 || ch == gamecontrol[gc_screenshot][0] || ch == gamecontrol[gc_screenshot][1]) // remappable F8
 | 
			
		||||
		M_ScreenShot();
 | 
			
		||||
	else if (ch == KEY_F9 || ch == gamecontrol[gc_recordgif][0] || ch == gamecontrol[gc_recordgif][1]) // remappable F9
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -200,7 +200,10 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
 | 
			
		|||
			}
 | 
			
		||||
			// Reposition window only in windowed mode
 | 
			
		||||
			SDL_SetWindowSize(window, width, height);
 | 
			
		||||
			SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
 | 
			
		||||
			SDL_SetWindowPosition(window,
 | 
			
		||||
				SDL_WINDOWPOS_CENTERED_DISPLAY(SDL_GetWindowDisplayIndex(window)),
 | 
			
		||||
				SDL_WINDOWPOS_CENTERED_DISPLAY(SDL_GetWindowDisplayIndex(window))
 | 
			
		||||
			);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue