{"action":"created","issue":{"url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/34","repository_url":"https://api.github.com/repos/afritz1/OpenTESArena","labels_url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/34/comments","events_url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/34/events","html_url":"https://github.com/afritz1/OpenTESArena/issues/34","id":161318734,"number":34,"title":"Aspect ratio correction","user":{"login":"kcat","id":1545516,"avatar_url":"https://avatars.githubusercontent.com/u/1545516?v=3","gravatar_id":"","url":"https://api.github.com/users/kcat","html_url":"https://github.com/kcat","followers_url":"https://api.github.com/users/kcat/followers","following_url":"https://api.github.com/users/kcat/following{/other_user}","gists_url":"https://api.github.com/users/kcat/gists{/gist_id}","starred_url":"https://api.github.com/users/kcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcat/subscriptions","organizations_url":"https://api.github.com/users/kcat/orgs","repos_url":"https://api.github.com/users/kcat/repos","events_url":"https://api.github.com/users/kcat/events{/privacy}","received_events_url":"https://api.github.com/users/kcat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-06-20T23:29:48Z","updated_at":"2016-06-23T20:01:59Z","closed_at":null,"body":"A quirk of the original game, along with a number of other games from the same era, is that even though they used a 320x200 (16:10) video mode, it was intended for fullscreen display on 4:3 monitors. This resulted in the scene being viewed with non-square/\"stretched\" pixels. For modern systems which use square-pixel video modes (framebuffer aspect ratio matching the monitor aspect ratio), this requires screen elements to be stretched vertically by a multiplier of 1.2. Both UI elements and the world projection matrix need to include this stretching to appear as they originally did, on top of any letterboxing or pillarboxing.\r\n\r\nSee [here](http://doomwiki.org/wiki/Aspect_ratio) for more information (for the original Doom, but the same applies to Arena as they both used stretched 320x200 on a 4:3 display)."},"comment":{"url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/comments/228166604","html_url":"https://github.com/afritz1/OpenTESArena/issues/34#issuecomment-228166604","issue_url":"https://api.github.com/repos/afritz1/OpenTESArena/issues/34","id":228166604,"user":{"login":"afritz1","id":6729557,"avatar_url":"https://avatars.githubusercontent.com/u/6729557?v=3","gravatar_id":"","url":"https://api.github.com/users/afritz1","html_url":"https://github.com/afritz1","followers_url":"https://api.github.com/users/afritz1/followers","following_url":"https://api.github.com/users/afritz1/following{/other_user}","gists_url":"https://api.github.com/users/afritz1/gists{/gist_id}","starred_url":"https://api.github.com/users/afritz1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afritz1/subscriptions","organizations_url":"https://api.github.com/users/afritz1/orgs","repos_url":"https://api.github.com/users/afritz1/repos","events_url":"https://api.github.com/users/afritz1/events{/privacy}","received_events_url":"https://api.github.com/users/afritz1/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T20:01:59Z","updated_at":"2016-06-23T20:01:59Z","body":"Well, `dst` and `nativeSurface` are pointing to the same thing. There's only one window surface, and that's the destination for all drawing.\r\n\r\nI don't have any problems with that code causing the output to get clipped. The hack works, but I should really rework the Panel draw functions for normalized coordinates and allow some `SDL_Textures` to be used there as well. It'll take some time."}}
{"actor":{"display_login":"afritz1"}}