Merge pull request #88220 from FaycalElOuariachi/display_server_windows-clipboard_get_image-fix-DIB-image-import
Fix the fetching of images in `CF_DIB` format in `DisplayServerWindows::clipboard_get_image`
This commit is contained in:
commit
f317cc713a
|
@ -760,8 +760,7 @@ Ref<Image> DisplayServerWindows::clipboard_get_image() const {
|
|||
pba.append(rgbquad->rgbReserved);
|
||||
}
|
||||
}
|
||||
image.instantiate();
|
||||
image->create_from_data(info->biWidth, info->biHeight, false, Image::Format::FORMAT_RGBA8, pba);
|
||||
image = Image::create_from_data(info->biWidth, info->biHeight, false, Image::Format::FORMAT_RGBA8, pba);
|
||||
|
||||
GlobalUnlock(mem);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue