mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 14:45:00 +00:00 
			
		
		
		
	Fixed missing error messages for SDL_GetWindowWMInfo().
This commit is contained in:
		
							parent
							
								
									c609d856ff
								
							
						
					
					
						commit
						fbd30c363d
					
				| 
						 | 
					@ -477,6 +477,7 @@ DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window,
 | 
				
			||||||
       maybe by forcing SDL_VIDEODRIVER=x11. */
 | 
					       maybe by forcing SDL_VIDEODRIVER=x11. */
 | 
				
			||||||
    if (version < 2000006) {
 | 
					    if (version < 2000006) {
 | 
				
			||||||
        info->subsystem = SDL_SYSWM_UNKNOWN;
 | 
					        info->subsystem = SDL_SYSWM_UNKNOWN;
 | 
				
			||||||
 | 
					        SDL_SetError("Version must be 2.0.6 or newer");
 | 
				
			||||||
        return SDL_FALSE;
 | 
					        return SDL_FALSE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -145,6 +145,7 @@ Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
 | 
				
			||||||
       maybe by forcing SDL_VIDEODRIVER=x11. */
 | 
					       maybe by forcing SDL_VIDEODRIVER=x11. */
 | 
				
			||||||
    if (version < 2000006) {
 | 
					    if (version < 2000006) {
 | 
				
			||||||
        info->subsystem = SDL_SYSWM_UNKNOWN;
 | 
					        info->subsystem = SDL_SYSWM_UNKNOWN;
 | 
				
			||||||
 | 
					        SDL_SetError("Version must be 2.0.6 or newer");
 | 
				
			||||||
        return SDL_FALSE;
 | 
					        return SDL_FALSE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue