View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000020 | BooBoo | General | public | 2025-12-29 22:51 | 2025-12-29 23:43 |
| Reporter | tremblin | Assigned To | tremblin | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Summary | 0000020: make set_viewport like set_scissor | ||||
| Description | Since it's very difficult to compute a scissor rectangle when you can have letterbox and scaling, right now the set_scissor does it for you and the coordinates you supply to it are buffer/game coordinates not window coordinates, and it accounts for letterbox/scaling. But set_viewport doesn't. I think since the scissor cannot be set outside the letterbox now, set_viewport is only useful within the buffer anyway, so make it's coordinates buffer/game coordinates instead of direct->OpenGL coordinates. I tried and since the scissor can't be set outside the letterbox, setting the viewport over the letterbox shows the letterbox because everything else is scissored out. So since there's no way to draw outside the letterbox, might as well simplify it for setting a viewport within the letterbox. | ||||
| Tags | No tags attached. | ||||