Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix as_nsdragoperation #104

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions os/osx/dnd.mm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

NSDragOperation as_nsdragoperation(const os::DropOperation op)
{
NSDragOperation nsdop;
NSDragOperation nsdop = NSDragOperationNone;
if (static_cast<int>(op) & static_cast<int>(os::DropOperation::Copy))
nsdop |= NSDragOperationCopy;

Expand All @@ -87,7 +87,7 @@ NSDragOperation as_nsdragoperation(const os::DropOperation op)

os::DropOperation as_dropoperation(const NSDragOperation nsdop)
{
int op = 0;
int op = static_cast<int>(os::DropOperation::None);
if (nsdop & NSDragOperationCopy)
op |= static_cast<int>(os::DropOperation::Copy);

Expand Down
2 changes: 1 addition & 1 deletion os/win/dnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DWORD as_dropeffect(const os::DropOperation op)

os::DropOperation as_dropoperation(DWORD pdwEffect)
{
int op = 0;
int op = static_cast<int>(os::DropOperation::None);
if (pdwEffect & DROPEFFECT_COPY)
op |= static_cast<int>(os::DropOperation::Copy);

Expand Down
Loading