Skip to content
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

sdl draw line section #1

Open
sirus20x6 opened this issue Apr 2, 2023 · 0 comments
Open

sdl draw line section #1

sirus20x6 opened this issue Apr 2, 2023 · 0 comments

Comments

@sirus20x6
Copy link

what is this section for? it just seems to make the rendering of the CA look weird.

    SDL_SetRenderDrawColor(render, 255, 255, 255, 255);
    for (int i = 0; i < MAPWIDTH; i++) {
        SDL_RenderDrawLine(render, i * SCALE, 0, i * SCALE, MAPHEIGHT * SCALE);
    }
    for (int i = 0; i < MAPHEIGHT; i++) {
        SDL_RenderDrawLine(render, 0, i * SCALE, MAPWIDTH * SCALE, i * SCALE);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant