{"action":"created","issue":{"url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/505","repository_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2","labels_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/505/comments","events_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/505/events","html_url":"https://github.com/AngryLawyer/rust-sdl2/issues/505","id":152045034,"number":505,"title":"Rect::center() returns absolute on-screen center, not relative center","user":{"login":"th0br0","id":30996,"avatar_url":"https://avatars.githubusercontent.com/u/30996?v=3","gravatar_id":"","url":"https://api.github.com/users/th0br0","html_url":"https://github.com/th0br0","followers_url":"https://api.github.com/users/th0br0/followers","following_url":"https://api.github.com/users/th0br0/following{/other_user}","gists_url":"https://api.github.com/users/th0br0/gists{/gist_id}","starred_url":"https://api.github.com/users/th0br0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th0br0/subscriptions","organizations_url":"https://api.github.com/users/th0br0/orgs","repos_url":"https://api.github.com/users/th0br0/repos","events_url":"https://api.github.com/users/th0br0/events{/privacy}","received_events_url":"https://api.github.com/users/th0br0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-30T18:27:15Z","updated_at":"2016-04-30T18:38:17Z","closed_at":null,"body":"See: https://github.com/AngryLawyer/rust-sdl2/blob/217d55f845d095540b0ae1d20fb01d84d1207551/src/sdl2/rect.rs#L157\r\n\r\nMaybe we should have a `::center_on_screen()` and a `::center()` method? I was quite surprised to find out by chance that `center().x() != width() / 2)`\r\n\r\nOr is this on purpose?"},"comment":{"url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/comments/215985983","html_url":"https://github.com/AngryLawyer/rust-sdl2/issues/505#issuecomment-215985983","issue_url":"https://api.github.com/repos/AngryLawyer/rust-sdl2/issues/505","id":215985983,"user":{"login":"th0br0","id":30996,"avatar_url":"https://avatars.githubusercontent.com/u/30996?v=3","gravatar_id":"","url":"https://api.github.com/users/th0br0","html_url":"https://github.com/th0br0","followers_url":"https://api.github.com/users/th0br0/followers","following_url":"https://api.github.com/users/th0br0/following{/other_user}","gists_url":"https://api.github.com/users/th0br0/gists{/gist_id}","starred_url":"https://api.github.com/users/th0br0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th0br0/subscriptions","organizations_url":"https://api.github.com/users/th0br0/orgs","repos_url":"https://api.github.com/users/th0br0/repos","events_url":"https://api.github.com/users/th0br0/events{/privacy}","received_events_url":"https://api.github.com/users/th0br0/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T18:38:17Z","updated_at":"2016-04-30T18:38:17Z","body":"Indeed. The description for `center()` is ambiguous `Returns the center of this rectangle.` in my opinion."}}