mirror of https://github.com/aseprite/aseprite.git
[win] Fix compilation when not using skia backend
This commit is contained in:
parent
b32cd0ff47
commit
ab449a2978
|
@ -108,7 +108,7 @@ endif()
|
|||
# This defines a specific webp decoding utility function for using
|
||||
# in Windows when dragging and dropping images that are stored as
|
||||
# webp files (like Chrome does).
|
||||
if(WIN32 AND ENABLE_WEBP)
|
||||
if(WIN32 AND ENABLE_WEBP AND LAF_BACKEND STREQUAL "skia")
|
||||
target_sources(app-lib PRIVATE util/decode_webp.cpp)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
#include "os/x11/system.h"
|
||||
#endif
|
||||
|
||||
#if ENABLE_WEBP && LAF_WINDOWS
|
||||
#if ENABLE_WEBP && LAF_WINDOWS && LAF_SKIA
|
||||
#include "app/util/decode_webp.h"
|
||||
#endif
|
||||
|
||||
|
@ -485,7 +485,7 @@ void App::run(const bool runGuiManager)
|
|||
// How to interpret one finger on Windows tablets.
|
||||
manager->display()->nativeWindow()->setInterpretOneFingerGestureAsMouseMovement(
|
||||
preferences().experimental.oneFingerAsMouseMovement());
|
||||
#if ENABLE_WEBP
|
||||
#if ENABLE_WEBP && LAF_SKIA
|
||||
// In Windows we use a custom webp decoder for drag & drop operations.
|
||||
os::set_decode_webp(util::decode_webp);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue