Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(y = 0; y <= 32; y++)
- {
- for(x = 0; x <= 64; x++)
- {
- switch(display[y][x])
- {
- case 1:
- {
- whiteRect.x = x * 5; whiteRect.y = y * y;
- SDL_FillRect(screen, &whiteRect, white);
- break;
- }
- case 0:
- {
- whiteRect.x = x * 5; whiteRect.y = y * y;
- SDL_FillRect(screen, &whiteRect, black);
- break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment