Skip to content

Commit

Permalink
Fix version check in mac color picker
Browse files Browse the repository at this point in the history
Of course, MAC_OS_VERSION_15_0 is not defined on older OS versions
or with older SDKs.
  • Loading branch information
arch1t3cht committed Dec 24, 2024
1 parent a46dc37 commit 1caf540
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dialog_colorpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ class ColorPickerScreenDropper final : public wxControl {
void DropFromScreenXY(int x, int y);
};

#ifndef MAC_OS_VERSION_15_0
#define MAC_OS_VERSION_15_0 150000
#endif

void ColorPickerScreenDropper::DropFromScreenXY(int x, int y) {
wxMemoryDC capdc(capture);
capdc.SetPen(*wxTRANSPARENT_PEN);
Expand Down

0 comments on commit 1caf540

Please sign in to comment.