Changeset 691 for soft/giet_vm/applications/raycast/disp.c
- Timestamp:
- Aug 5, 2015, 6:46:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/raycast/disp.c
r686 r691 37 37 { 38 38 int y = (y0 >= 0 ? y0 : 0); 39 40 for (; y < y1 && y < FBUF_Y_SIZE; y++) { 39 int ymax = (y1 < FBUF_Y_SIZE ? y1 : FBUF_Y_SIZE); 40 41 for (; y < ymax; y++) { 41 42 // Find texture coordinate 42 43 int ty = (y - y0) * TEX_SIZE / (y1 - y0); … … 49 50 { 50 51 int y = (y0 >= 0 ? y0 : 0); 51 52 for (; y < y1 && y < FBUF_Y_SIZE; y++) { 52 int ymax = (y1 < FBUF_Y_SIZE ? y1 : FBUF_Y_SIZE); 53 54 for (; y < ymax; y++) { 53 55 buf[cur_buf][y * FBUF_X_SIZE + x] = color; 54 56 }
Note: See TracChangeset
for help on using the changeset viewer.