MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / getScreenHeight

Method getScreenHeight

lib/GfxRenderer/GfxRenderer.cpp:1455–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455int GfxRenderer::getScreenHeight() const {
1456 switch (orientation) {
1457 case Portrait:
1458 case PortraitInverted:
1459 // 800px tall in portrait logical coordinates
1460 return panelWidth;
1461 case LandscapeClockwise:
1462 case LandscapeCounterClockwise:
1463 // 480px tall in landscape logical coordinates
1464 return panelHeight;
1465 }
1466 return panelWidth;
1467}
1468
1469// Translate a logical rect through rotateCoordinates and take the bounding
1470// box of its four corners on the physical panel. Output coords are inclusive

Callers 15

renderMethod · 0.80
decodeToFramebufferMethod · 0.80
decodeToFramebufferMethod · 0.80
setupFunction · 0.80
getScreenSafeAreaMethod · 0.80
drawButtonHintsMethod · 0.80
drawPopupMethod · 0.80
drawStatusBarMethod · 0.80
drawButtonHintsMethod · 0.80
drawButtonHintsMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected