winemac: Restrict DescribePixelFormat() to displayable pixel formats.
This commit is contained in:
parent
c7d2bcfb61
commit
d33a4da5ed
|
@ -3307,7 +3307,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share)
|
||||||
*/
|
*/
|
||||||
int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRIPTOR *descr)
|
int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRIPTOR *descr)
|
||||||
{
|
{
|
||||||
int ret = nb_formats;
|
int ret = nb_displayable_formats;
|
||||||
const pixel_format *pf;
|
const pixel_format *pf;
|
||||||
const struct color_mode *mode;
|
const struct color_mode *mode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue