Skip to content

Modify Readme code example #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ int32_t ft_pixel(int32_t r, int32_t g, int32_t b, int32_t a)

void ft_randomize(void* param)
{
for (int32_t i = 0; i < image->width; ++i)
(void)param;
for (uint32_t i = 0; i < image->width; ++i)
{
for (int32_t y = 0; y < image->height; ++y)
for (uint32_t y = 0; y < image->height; ++y)
{
uint32_t color = ft_pixel(
rand() % 0xFF, // R
Expand Down Expand Up @@ -301,7 +302,7 @@ void ft_hook(void* param)

// -----------------------------------------------------------------------------

int32_t main(int32_t argc, const char* argv[])
int32_t main(void)
{
mlx_t* mlx;

Expand Down