MCPcopy Index your code
hub / github.com/coder/coder / desktopSizeFitsDeclaredLimits

Function desktopSizeFitsDeclaredLimits

codersdk/workspacesdk/display.go:129–132  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

127}
128
129func desktopSizeFitsDeclaredLimits(width, height int) bool {
130 return max(width, height) <= desktopDeclaredMaxLongEdge &&
131 width*height <= desktopDeclaredMaxTotalPixels
132}
133
134func computeGenericDeclaredDesktopSize(width, height int) (scaledWidth, scaledHeight int) {
135 longEdge := max(width, height)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected