Rev 7096 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7096 | Rev 7147 | ||
---|---|---|---|
Line 107... | Line 107... | ||
107 | first_element_data = get_color(r, columns-1); |
107 | first_element_data = get_color(r, columns-1); |
108 | for (c = columns-1; c > 0; c--) set_color(r, c, get_color(r, c-1)); |
108 | for (c = columns-1; c > 0; c--) set_color(r, c, get_color(r, c-1)); |
109 | set_color(r, 0, first_element_data); |
109 | set_color(r, 0, first_element_data); |
110 | } |
110 | } |
111 | } |
111 | } |
- | 112 | if (direction == DIRECTION_UP) |
|
- | 113 | { |
|
- | 114 | for (c = 0; c < columns; c++) |
|
- | 115 | { |
|
- | 116 | first_element_data = get_color(0, c); |
|
- | 117 | for (r = 0; r < rows-1; r++) set_color(r, c, get_color(r+1, c)); |
|
- | 118 | set_color(rows-1, c, first_element_data); |
|
- | 119 | } |
|
- | 120 | } |
|
- | 121 | if (direction == DIRECTION_DOWN) |
|
- | 122 | { |
|
- | 123 | for (c = 0; c < columns; c++) |
|
- | 124 | { |
|
- | 125 | first_element_data = get_color(rows-1, c); |
|
- | 126 | for (r = rows-1; r > 0; r--) set_color(r, c, get_color(r-1, c)); |
|
- | 127 | set_color(0, c, first_element_data); |
|
- | 128 | } |
|
- | 129 | } |
|
Line 112... | Line 130... | ||
112 | 130 | ||
113 | draw_all_cells(); |
131 | draw_all_cells(); |
- | 132 | }>>>>>>>>>> |
|
- | 133 | ||
- | 134 | ||
- | 135 | ||
- | 136 | ||
- | 137 | ||
- | 138 |