mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 09:41:04 +00:00
[win] Fix aseprite-thumbnailer with new changes from a66c170ded41e01667c2180dcd1bc99258bf02ce
This commit is contained in:
parent
a66c170ded
commit
9f8df8e914
@ -1,5 +1,5 @@
|
||||
// Desktop Integration
|
||||
// Copyright (C) 2021 Igara Studio S.A.
|
||||
// Copyright (C) 2021-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2017-2018 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
@ -203,7 +203,7 @@ HRESULT ThumbnailHandler::GetThumbnail(UINT cx, HBITMAP* phbmp, WTS_ALPHATYPE* p
|
||||
|
||||
#undef TRANSPARENT // Windows defines TRANSPARENT macro
|
||||
render::Render render;
|
||||
render.setBgType(render::BgType::TRANSPARENT);
|
||||
render.setBgOptions(render::BgOptions::MakeTransparent());
|
||||
render.setProjection(render::Projection(doc::PixelRatio(1, 1),
|
||||
render::Zoom(cx, wh)));
|
||||
render.renderSprite(image.get(), spr, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user