Note: Internal driver treats screen in command orientation; this library exposes a logical orientation
| 1439 | |
| 1440 | // Note: Internal driver treats screen in command orientation; this library exposes a logical orientation |
| 1441 | int 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 | |
| 1455 | int GfxRenderer::getScreenHeight() const { |
| 1456 | switch (orientation) { |
no outgoing calls
no test coverage detected