Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PrinterSettings.SupportsColor to use the right PInvoke #34651

Merged
merged 6 commits into from
Apr 15, 2020

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
Member

@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
5 participants