{"action":"created","comment":{"url":"https://api.github.com/repos/ScandalousMan/RT/pulls/comments/212962623","pull_request_review_id":149696500,"id":212962623,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjk2MjYyMw==","diff_hunk":"@@ -54,3 +54,19 @@ Uint32 getpxl(t_param *param, int y, int x)\n \t\treturn 0;\n     return *(Uint32 *)(param->graph->surfs[num_surf]->pixels + y * param->graph->surfs[num_surf]->pitch + x * 4);\n }\n+\n+Uint32\t\tjpg_find_pxl(t_param *param, double w, double h)\n+{\n+\tint color;\n+\n+\tif (w > 1 || w < 0 || h > 1 || h < 0)\n+\t\treturn (0);\n+\tcolor = (int)*(Uint32 *)(param->texture->pixels + (int)round(param->texture->w * w) * param->texture->pitch + (int)round(param->texture->h * h) * 3);\n+\treturn rgb_color((color) & 0xFF, (color >> 8) & 0xFF, (color >> 16) & 0xFF);\n+}\n+void\tjpg_loader(t_param *param, char *name)\n+{\n+\tIMG_Init(IMG_INIT_JPG);\n+\tIMG_Quit();","path":"srcs/sdl/utils.c","position":17,"original_position":17,"commit_id":"3463b6fbcb5149438196eb0587118ead8ce3d095","original_commit_id":"3463b6fbcb5149438196eb0587118ead8ce3d095","user":{"login":"Its-Alex","id":6404072,"node_id":"MDQ6VXNlcjY0MDQwNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/6404072?v=4","gravatar_id":"","url":"https://api.github.com/users/Its-Alex","html_url":"https://github.com/Its-Alex","followers_url":"https://api.github.com/users/Its-Alex/followers","following_url":"https://api.github.com/users/Its-Alex/following{/other_user}","gists_url":"https://api.github.com/users/Its-Alex/gists{/gist_id}","starred_url":"https://api.github.com/users/Its-Alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Its-Alex/subscriptions","organizations_url":"https://api.github.com/users/Its-Alex/orgs","repos_url":"https://api.github.com/users/Its-Alex/repos","events_url":"https://api.github.com/users/Its-Alex/events{/privacy}","received_events_url":"https://api.github.com/users/Its-Alex/received_events","type":"User","site_admin":false},"body":"\"and before the call to SDL_Quit(), we shut down SDL_Image using IMG_Quit():\"\r\nYes it must be call after :)","created_at":"2018-08-27T12:52:04Z","updated_at":"2018-08-27T12:52:04Z","html_url":"https://github.com/ScandalousMan/RT/pull/56#discussion_r212962623","pull_request_url":"https://api.github.com/repos/ScandalousMan/RT/pulls/56","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/comments/212962623"},"html":{"href":"https://github.com/ScandalousMan/RT/pull/56#discussion_r212962623"},"pull_request":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/56"}},"in_reply_to_id":212830048},"pull_request":{"url":"https://api.github.com/repos/ScandalousMan/RT/pulls/56","id":210954105,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTU0MTA1","html_url":"https://github.com/ScandalousMan/RT/pull/56","diff_url":"https://github.com/ScandalousMan/RT/pull/56.diff","patch_url":"https://github.com/ScandalousMan/RT/pull/56.patch","issue_url":"https://api.github.com/repos/ScandalousMan/RT/issues/56","number":56,"state":"open","locked":false,"title":"Valentin","user":{"login":"vacrozet","id":20908645,"node_id":"MDQ6VXNlcjIwOTA4NjQ1","avatar_url":"https://avatars0.githubusercontent.com/u/20908645?v=4","gravatar_id":"","url":"https://api.github.com/users/vacrozet","html_url":"https://github.com/vacrozet","followers_url":"https://api.github.com/users/vacrozet/followers","following_url":"https://api.github.com/users/vacrozet/following{/other_user}","gists_url":"https://api.github.com/users/vacrozet/gists{/gist_id}","starred_url":"https://api.github.com/users/vacrozet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vacrozet/subscriptions","organizations_url":"https://api.github.com/users/vacrozet/orgs","repos_url":"https://api.github.com/users/vacrozet/repos","events_url":"https://api.github.com/users/vacrozet/events{/privacy}","received_events_url":"https://api.github.com/users/vacrozet/received_events","type":"User","site_admin":false},"body":"SDL parse les images en BGR, je les converties en RGB\r\n**Seulement les JPG** .","created_at":"2018-08-26T14:27:32Z","updated_at":"2018-08-27T12:52:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2ec2ddf1fe08f1a01649599fedbb5627e0973df","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ScandalousMan/RT/pulls/56/commits","review_comments_url":"https://api.github.com/repos/ScandalousMan/RT/pulls/56/comments","review_comment_url":"https://api.github.com/repos/ScandalousMan/RT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ScandalousMan/RT/issues/56/comments","statuses_url":"https://api.github.com/repos/ScandalousMan/RT/statuses/3463b6fbcb5149438196eb0587118ead8ce3d095","head":{"label":"ScandalousMan:valentin","ref":"valentin","sha":"3463b6fbcb5149438196eb0587118ead8ce3d095","user":{"login":"ScandalousMan","id":10122429,"node_id":"MDQ6VXNlcjEwMTIyNDI5","avatar_url":"https://avatars3.githubusercontent.com/u/10122429?v=4","gravatar_id":"","url":"https://api.github.com/users/ScandalousMan","html_url":"https://github.com/ScandalousMan","followers_url":"https://api.github.com/users/ScandalousMan/followers","following_url":"https://api.github.com/users/ScandalousMan/following{/other_user}","gists_url":"https://api.github.com/users/ScandalousMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ScandalousMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScandalousMan/subscriptions","organizations_url":"https://api.github.com/users/ScandalousMan/orgs","repos_url":"https://api.github.com/users/ScandalousMan/repos","events_url":"https://api.github.com/users/ScandalousMan/events{/privacy}","received_events_url":"https://api.github.com/users/ScandalousMan/received_events","type":"User","site_admin":false},"repo":{"id":103515996,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1MTU5OTY=","name":"RT","full_name":"ScandalousMan/RT","owner":{"login":"ScandalousMan","id":10122429,"node_id":"MDQ6VXNlcjEwMTIyNDI5","avatar_url":"https://avatars3.githubusercontent.com/u/10122429?v=4","gravatar_id":"","url":"https://api.github.com/users/ScandalousMan","html_url":"https://github.com/ScandalousMan","followers_url":"https://api.github.com/users/ScandalousMan/followers","following_url":"https://api.github.com/users/ScandalousMan/following{/other_user}","gists_url":"https://api.github.com/users/ScandalousMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ScandalousMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScandalousMan/subscriptions","organizations_url":"https://api.github.com/users/ScandalousMan/orgs","repos_url":"https://api.github.com/users/ScandalousMan/repos","events_url":"https://api.github.com/users/ScandalousMan/events{/privacy}","received_events_url":"https://api.github.com/users/ScandalousMan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ScandalousMan/RT","description":"Ray Tracing group project for School 42","fork":false,"url":"https://api.github.com/repos/ScandalousMan/RT","forks_url":"https://api.github.com/repos/ScandalousMan/RT/forks","keys_url":"https://api.github.com/repos/ScandalousMan/RT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScandalousMan/RT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScandalousMan/RT/teams","hooks_url":"https://api.github.com/repos/ScandalousMan/RT/hooks","issue_events_url":"https://api.github.com/repos/ScandalousMan/RT/issues/events{/number}","events_url":"https://api.github.com/repos/ScandalousMan/RT/events","assignees_url":"https://api.github.com/repos/ScandalousMan/RT/assignees{/user}","branches_url":"https://api.github.com/repos/ScandalousMan/RT/branches{/branch}","tags_url":"https://api.github.com/repos/ScandalousMan/RT/tags","blobs_url":"https://api.github.com/repos/ScandalousMan/RT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScandalousMan/RT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScandalousMan/RT/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScandalousMan/RT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScandalousMan/RT/statuses/{sha}","languages_url":"https://api.github.com/repos/ScandalousMan/RT/languages","stargazers_url":"https://api.github.com/repos/ScandalousMan/RT/stargazers","contributors_url":"https://api.github.com/repos/ScandalousMan/RT/contributors","subscribers_url":"https://api.github.com/repos/ScandalousMan/RT/subscribers","subscription_url":"https://api.github.com/repos/ScandalousMan/RT/subscription","commits_url":"https://api.github.com/repos/ScandalousMan/RT/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScandalousMan/RT/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScandalousMan/RT/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScandalousMan/RT/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScandalousMan/RT/contents/{+path}","compare_url":"https://api.github.com/repos/ScandalousMan/RT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScandalousMan/RT/merges","archive_url":"https://api.github.com/repos/ScandalousMan/RT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScandalousMan/RT/downloads","issues_url":"https://api.github.com/repos/ScandalousMan/RT/issues{/number}","pulls_url":"https://api.github.com/repos/ScandalousMan/RT/pulls{/number}","milestones_url":"https://api.github.com/repos/ScandalousMan/RT/milestones{/number}","notifications_url":"https://api.github.com/repos/ScandalousMan/RT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScandalousMan/RT/labels{/name}","releases_url":"https://api.github.com/repos/ScandalousMan/RT/releases{/id}","deployments_url":"https://api.github.com/repos/ScandalousMan/RT/deployments","created_at":"2017-09-14T09:51:04Z","updated_at":"2018-08-27T06:15:04Z","pushed_at":"2018-08-27T06:15:13Z","git_url":"git://github.com/ScandalousMan/RT.git","ssh_url":"git@github.com:ScandalousMan/RT.git","clone_url":"https://github.com/ScandalousMan/RT.git","svn_url":"https://github.com/ScandalousMan/RT","homepage":null,"size":8480,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"ScandalousMan:master","ref":"master","sha":"ba77826fd352eee144343b8e739198dc7c3d8a6e","user":{"login":"ScandalousMan","id":10122429,"node_id":"MDQ6VXNlcjEwMTIyNDI5","avatar_url":"https://avatars3.githubusercontent.com/u/10122429?v=4","gravatar_id":"","url":"https://api.github.com/users/ScandalousMan","html_url":"https://github.com/ScandalousMan","followers_url":"https://api.github.com/users/ScandalousMan/followers","following_url":"https://api.github.com/users/ScandalousMan/following{/other_user}","gists_url":"https://api.github.com/users/ScandalousMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ScandalousMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScandalousMan/subscriptions","organizations_url":"https://api.github.com/users/ScandalousMan/orgs","repos_url":"https://api.github.com/users/ScandalousMan/repos","events_url":"https://api.github.com/users/ScandalousMan/events{/privacy}","received_events_url":"https://api.github.com/users/ScandalousMan/received_events","type":"User","site_admin":false},"repo":{"id":103515996,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1MTU5OTY=","name":"RT","full_name":"ScandalousMan/RT","owner":{"login":"ScandalousMan","id":10122429,"node_id":"MDQ6VXNlcjEwMTIyNDI5","avatar_url":"https://avatars3.githubusercontent.com/u/10122429?v=4","gravatar_id":"","url":"https://api.github.com/users/ScandalousMan","html_url":"https://github.com/ScandalousMan","followers_url":"https://api.github.com/users/ScandalousMan/followers","following_url":"https://api.github.com/users/ScandalousMan/following{/other_user}","gists_url":"https://api.github.com/users/ScandalousMan/gists{/gist_id}","starred_url":"https://api.github.com/users/ScandalousMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScandalousMan/subscriptions","organizations_url":"https://api.github.com/users/ScandalousMan/orgs","repos_url":"https://api.github.com/users/ScandalousMan/repos","events_url":"https://api.github.com/users/ScandalousMan/events{/privacy}","received_events_url":"https://api.github.com/users/ScandalousMan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ScandalousMan/RT","description":"Ray Tracing group project for School 42","fork":false,"url":"https://api.github.com/repos/ScandalousMan/RT","forks_url":"https://api.github.com/repos/ScandalousMan/RT/forks","keys_url":"https://api.github.com/repos/ScandalousMan/RT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScandalousMan/RT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScandalousMan/RT/teams","hooks_url":"https://api.github.com/repos/ScandalousMan/RT/hooks","issue_events_url":"https://api.github.com/repos/ScandalousMan/RT/issues/events{/number}","events_url":"https://api.github.com/repos/ScandalousMan/RT/events","assignees_url":"https://api.github.com/repos/ScandalousMan/RT/assignees{/user}","branches_url":"https://api.github.com/repos/ScandalousMan/RT/branches{/branch}","tags_url":"https://api.github.com/repos/ScandalousMan/RT/tags","blobs_url":"https://api.github.com/repos/ScandalousMan/RT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScandalousMan/RT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScandalousMan/RT/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScandalousMan/RT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScandalousMan/RT/statuses/{sha}","languages_url":"https://api.github.com/repos/ScandalousMan/RT/languages","stargazers_url":"https://api.github.com/repos/ScandalousMan/RT/stargazers","contributors_url":"https://api.github.com/repos/ScandalousMan/RT/contributors","subscribers_url":"https://api.github.com/repos/ScandalousMan/RT/subscribers","subscription_url":"https://api.github.com/repos/ScandalousMan/RT/subscription","commits_url":"https://api.github.com/repos/ScandalousMan/RT/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScandalousMan/RT/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScandalousMan/RT/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScandalousMan/RT/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScandalousMan/RT/contents/{+path}","compare_url":"https://api.github.com/repos/ScandalousMan/RT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScandalousMan/RT/merges","archive_url":"https://api.github.com/repos/ScandalousMan/RT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScandalousMan/RT/downloads","issues_url":"https://api.github.com/repos/ScandalousMan/RT/issues{/number}","pulls_url":"https://api.github.com/repos/ScandalousMan/RT/pulls{/number}","milestones_url":"https://api.github.com/repos/ScandalousMan/RT/milestones{/number}","notifications_url":"https://api.github.com/repos/ScandalousMan/RT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScandalousMan/RT/labels{/name}","releases_url":"https://api.github.com/repos/ScandalousMan/RT/releases{/id}","deployments_url":"https://api.github.com/repos/ScandalousMan/RT/deployments","created_at":"2017-09-14T09:51:04Z","updated_at":"2018-08-27T06:15:04Z","pushed_at":"2018-08-27T06:15:13Z","git_url":"git://github.com/ScandalousMan/RT.git","ssh_url":"git@github.com:ScandalousMan/RT.git","clone_url":"https://github.com/ScandalousMan/RT.git","svn_url":"https://github.com/ScandalousMan/RT","homepage":null,"size":8480,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/56"},"html":{"href":"https://github.com/ScandalousMan/RT/pull/56"},"issue":{"href":"https://api.github.com/repos/ScandalousMan/RT/issues/56"},"comments":{"href":"https://api.github.com/repos/ScandalousMan/RT/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ScandalousMan/RT/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/ScandalousMan/RT/statuses/3463b6fbcb5149438196eb0587118ead8ce3d095"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Its-Alex"}}