Update upstream source from tag 'upstream/2.5.6'
Update to upstream version '2.5.6'
with Debian dir 84e23e17dbb425c6002ac9ecc4b2005b9c05707d
IOhannes m zmölnig (Debian/GNU)
3 months ago
| 38 | 38 | uint32_t *current_buffer, *alt_buffer; |
| 39 | 39 | |
| 40 | 40 | uint32_t *buffer; |
| 41 | uint8_t is_buffer_init; | |
| 41 | 42 | int dx, dy; |
| 42 | 43 | int sx, sy; |
| 43 | 44 | |
| 185 | 186 | |
| 186 | 187 | double vx, vy; |
| 187 | 188 | double dizz; |
| 188 | ||
| 189 | ||
| 189 | 190 | dizz = sin(inst->phase) * 10 + sin(inst->phase*1.9+5) * 5; |
| 191 | ||
| 192 | if (!inst->is_buffer_init) | |
| 193 | { | |
| 194 | memcpy(inst->buffer, inframe, inst->pixels * sizeof(uint32_t)); | |
| 195 | memcpy(&inst->buffer[inst->pixels], inframe, inst->pixels * sizeof(uint32_t)); | |
| 196 | inst->is_buffer_init = 1; | |
| 197 | } | |
| 190 | 198 | |
| 191 | 199 | if(w > h) |
| 192 | 200 | { |