{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4888","repository_url":"https://api.github.com/repos/mono/MonoGame","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4888/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4888/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4888/events","html_url":"https://github.com/mono/MonoGame/pull/4888","id":157328016,"number":4888,"title":"[SDL] Fix event struct size","user":{"login":"cra0zy","id":6773302,"avatar_url":"https://avatars.githubusercontent.com/u/6773302?v=3","gravatar_id":"","url":"https://api.github.com/users/cra0zy","html_url":"https://github.com/cra0zy","followers_url":"https://api.github.com/users/cra0zy/followers","following_url":"https://api.github.com/users/cra0zy/following{/other_user}","gists_url":"https://api.github.com/users/cra0zy/gists{/gist_id}","starred_url":"https://api.github.com/users/cra0zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cra0zy/subscriptions","organizations_url":"https://api.github.com/users/cra0zy/orgs","repos_url":"https://api.github.com/users/cra0zy/repos","events_url":"https://api.github.com/users/cra0zy/events{/privacy}","received_events_url":"https://api.github.com/users/cra0zy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-28T08:30:00Z","updated_at":"2016-05-28T12:15:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/MonoGame/pulls/4888","html_url":"https://github.com/mono/MonoGame/pull/4888","diff_url":"https://github.com/mono/MonoGame/pull/4888.diff","patch_url":"https://github.com/mono/MonoGame/pull/4888.patch"},"body":"Huge thanks to @RHY3756547  who noticed it in http://community.monogame.net/t/sdl2-backend-corrupts-memory-after-sdl-pollevent/7704\r\n\r\n@dellis1972 @mrhelmut This fixes the problem of running 32 bit SDL and exe on 64 bit host :)"},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/222305597","html_url":"https://github.com/mono/MonoGame/pull/4888#issuecomment-222305597","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/4888","id":222305597,"user":{"login":"cra0zy","id":6773302,"avatar_url":"https://avatars.githubusercontent.com/u/6773302?v=3","gravatar_id":"","url":"https://api.github.com/users/cra0zy","html_url":"https://github.com/cra0zy","followers_url":"https://api.github.com/users/cra0zy/followers","following_url":"https://api.github.com/users/cra0zy/following{/other_user}","gists_url":"https://api.github.com/users/cra0zy/gists{/gist_id}","starred_url":"https://api.github.com/users/cra0zy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cra0zy/subscriptions","organizations_url":"https://api.github.com/users/cra0zy/orgs","repos_url":"https://api.github.com/users/cra0zy/repos","events_url":"https://api.github.com/users/cra0zy/events{/privacy}","received_events_url":"https://api.github.com/users/cra0zy/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T12:15:35Z","updated_at":"2016-05-28T12:15:35Z","body":"sizeof returns size in bytes, so sizeof(SDL_Event) = 24, C# StructLayout Size is defined in bits so I just had to multiply it by 8. \r\n\r\nI checked the sizeof for the size of the sturct, not the wiki page, I was just explaining why he made a mistake."}}
{"actor":{"display_login":"cra0zy"}}