Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Feb 9, 2025
1 parent 4a6f703 commit da38923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/commands/winapi/user32.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export async function handleInputs(inputs) {

/** @type {() => Promise<boolean>} */
export const ensureDpiAwareness = _.memoize(async function ensureDpiAwareness() {
return await getUser32().SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
return Boolean(
await getUser32().SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2)
);
});

/**
Expand Down

0 comments on commit da38923

Please sign in to comment.