lie about SIZEPALETTE and NUMCOLORS in GetDeviceCaps
This commit is contained in:
		
							parent
							
								
									25ef20e711
								
							
						
					
					
						commit
						fc99383f21
					
				
					 1 changed files with 11 additions and 6 deletions
				
			
		|  | @ -857,14 +857,19 @@ int WINAPI fake_GetDeviceCaps(HDC hdc, int index) | ||||||
|         return g_ddraw.bpp; |         return g_ddraw.bpp; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (g_ddraw.ref && |     if (g_ddraw.ref && g_ddraw.bpp == 8 && (g_config.hook != 2 || g_ddraw.renderer == gdi_render_main)) | ||||||
|         g_ddraw.bpp == 8 && |     { | ||||||
|         index == RASTERCAPS && |         if (index == RASTERCAPS) | ||||||
|         (g_config.hook != 2 || g_ddraw.renderer == gdi_render_main)) |  | ||||||
|         { |         { | ||||||
|             return RC_PALETTE | real_GetDeviceCaps(hdc, index); |             return RC_PALETTE | real_GetDeviceCaps(hdc, index); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (index == SIZEPALETTE || index == NUMCOLORS) | ||||||
|  |         { | ||||||
|  |             return 256; | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     return real_GetDeviceCaps(hdc, index); |     return real_GetDeviceCaps(hdc, index); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue