Skip to content

Conversation

@safern
Copy link
Member

@safern safern commented Apr 7, 2020

According to MS docs, GetDeviceCaps(BITSPIXEL) returns the "Number of adjacent color bits for each pixel."

We instead need to use DeviceCapabilities with DC_COLORDEVICE

Fixes: #34630

cc: @ericstj @tarekgh

@ghost
Copy link

ghost commented Apr 7, 2020

Tagging @safern as an area owner

Copy link

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some nit comments. Please take a look.

@safern
Copy link
Member Author

safern commented Apr 15, 2020

It seems like the Mono Build node didn't update in the GH UI, but the build is green: https://dev.azure.com/dnceng/public/_build/results?buildId=600616&view=logs

Merging.

@safern safern merged commit 4265a13 into dotnet:master Apr 15, 2020
@safern safern deleted the PrinterFixSupportsColor branch April 15, 2020 01:10
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PrinterSettings.SupportsColor should use DeviceCapabilities(DC_COLORDEVICE) instead of GetDeviceCaps(BITSPIXEL).

5 participants