Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. void plat_hline(int x1, int x2, int y)
  2. {
  3. uint8_t *left = screen->pixels + screen->pitch * y;
  4. uint8_t *right = left + x2 * 4;
  5. left += x1 * 4;
  6. while(left < right)
  7. {
  8. *(uint32_t*) left = fgcol;
  9. left += 4;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement