| 1453 | } |
| 1454 | |
| 1455 | int 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 |
no outgoing calls
no test coverage detected