We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732f2d7 commit f6abb93Copy full SHA for f6abb93
src/api/nw_clipboard_api.cc
@@ -98,7 +98,7 @@ namespace {
98
}
99
100
if (data.type == TYPE_PNG &&
101
- !gfx::PNGCodec::EncodeA8SkBitmap(bitmap, &encoded_image)) {
+ !gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &encoded_image)) {
102
LOG(INFO) << "NwClipboardGetSyncFunction::RunSync(" << nwapi::nw__clipboard::ToString(data.type) << ") failed when converting to PNG";
103
error_ = "Failed to encode as PNG";
104
return false;
0 commit comments