Merge tag '1.11.0-beta2' into jgrpp
# Conflicts: # .github/workflows/ci-build.yml # .github/workflows/release.yml # CMakeLists.txt # src/blitter/32bpp_optimized.cpp # src/debug.cpp # src/gfx.cpp # src/gfx_func.h # src/lang/czech.txt # src/lang/english.txt # src/lang/italian.txt # src/lang/swedish.txt # src/lang/ukrainian.txt # src/network/network_server.cpp # src/os/windows/crashlog_win.cpp # src/os/windows/win32.cpp # src/pathfinder/follow_track.hpp # src/screenshot.cpp # src/settings_type.h # src/spritecache.cpp # src/vehicle_gui.cpp # src/video/sdl2_v.cpp # src/video/video_driver.cpp # src/video/video_driver.hpp # src/video/win32_v.cpp
This commit is contained in:
		@@ -512,11 +512,11 @@ static uint ConvertSdlKeyIntoMy(SDL_keysym *sym, WChar *character)
 | 
			
		||||
	return key;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int VideoDriver_SDL::PollEvent()
 | 
			
		||||
bool VideoDriver_SDL::PollEvent()
 | 
			
		||||
{
 | 
			
		||||
	SDL_Event ev;
 | 
			
		||||
 | 
			
		||||
	if (!SDL_PollEvent(&ev)) return -2;
 | 
			
		||||
	if (!SDL_PollEvent(&ev)) return false;
 | 
			
		||||
 | 
			
		||||
	switch (ev.type) {
 | 
			
		||||
		case SDL_MOUSEMOTION:
 | 
			
		||||
@@ -603,7 +603,8 @@ int VideoDriver_SDL::PollEvent()
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return -1;
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char *VideoDriver_SDL::Start(const StringList &parm)
 | 
			
		||||
@@ -719,9 +720,6 @@ void VideoDriver_SDL::MainLoop()
 | 
			
		||||
	DEBUG(driver, 1, "SDL: using %sthreads", _draw_threaded ? "" : "no ");
 | 
			
		||||
 | 
			
		||||
	for (;;) {
 | 
			
		||||
		InteractiveRandom(); // randomness
 | 
			
		||||
 | 
			
		||||
		while (PollEvent() == -1) {}
 | 
			
		||||
		if (_exit_game) break;
 | 
			
		||||
 | 
			
		||||
		if (this->Tick()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user