File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11// LAF OS Library
2- // Copyright (C) 2024 Igara Studio S.A.
2+ // Copyright (C) 2024-2025 Igara Studio S.A.
33//
44// This file is released under the terms of the MIT license.
55// Read LICENSE.txt for more information.
@@ -26,9 +26,9 @@ class DragDataProviderOSX : public DragDataProvider {
2626 NSPasteboard* m_pasteboard;
2727
2828 base::paths getPaths () override ;
29-
29+ # if CLIP_ENABLE_IMAGE
3030 SurfaceRef getImage () override ;
31-
31+ # endif
3232 std::string getUrl () override ;
3333
3434 bool contains (DragDataItemType type) override ;
Original file line number Diff line number Diff line change 11// LAF OS Library
2- // Copyright (C) 2024 Igara Studio S.A.
2+ // Copyright (C) 2024-2025 Igara Studio S.A.
33//
44// This file is released under the terms of the MIT license.
55// Read LICENSE.txt for more information.
3535 return files;
3636}
3737
38+ #if CLIP_ENABLE_IMAGE
39+
3840SurfaceRef DragDataProviderOSX::getImage ()
3941{
4042 clip::image img;
4547 return os::instance ()->makeSurface (img);
4648}
4749
50+ #endif // CLIP_ENABLE_IMAGE
51+
4852std::string DragDataProviderOSX::getUrl ()
4953{
5054 NSURL * url = [NSURL URLFromPasteboard: m_pasteboard];
You can’t perform that action at this time.
0 commit comments