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

PSX preparations #1786

Merged
merged 18 commits into from
Jun 16, 2023
Merged
Changes from 1 commit
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
14 changes: 14 additions & 0 deletions Packages/MIES/MIES_GuiUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,20 @@ Function IsSubwindow(string win)
return ItemsInList(win, "#") > 1
End

/// @brief Conversion between pixel <-> points
///
/// @{
Function PointsToPixel(variable var)

return var * (ScreenResolution/72)
t-b marked this conversation as resolved.
Show resolved Hide resolved
End

Function PixelToPoints(variable var)

return var * (72/ScreenResolution)
End
/// @}

/// @brief Checks if a window is tagged as certain type
///
/// @param[in] device Window name to check
Expand Down