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

Method getScreenWidth

lib/GfxRenderer/GfxRenderer.cpp:1441–1453  ·  view source on GitHub ↗

Note: Internal driver treats screen in command orientation; this library exposes a logical orientation

Source from the content-addressed store, hash-verified

1439
1440// Note: Internal driver treats screen in command orientation; this library exposes a logical orientation
1441int GfxRenderer::getScreenWidth() const {
1442 switch (orientation) {
1443 case Portrait:
1444 case PortraitInverted:
1445 // 480px wide in portrait logical coordinates
1446 return panelHeight;
1447 case LandscapeClockwise:
1448 case LandscapeCounterClockwise:
1449 // 800px wide in landscape logical coordinates
1450 return panelWidth;
1451 }
1452 return panelHeight;
1453}
1454
1455int GfxRenderer::getScreenHeight() const {
1456 switch (orientation) {

Callers 15

renderMethod · 0.80
decodeToFramebufferMethod · 0.80
decodeToFramebufferMethod · 0.80
getScreenSafeAreaMethod · 0.80
drawSideButtonHintsMethod · 0.80
drawPopupMethod · 0.80
drawStatusBarMethod · 0.80
drawButtonHintsMethod · 0.80
drawSideButtonHintsMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderServerRunningMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected