mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-16 07:32:00 +00:00
appleramdac: Use local variable during loop.
This commit is contained in:
parent
503ee92528
commit
a0052b7b9a
@ -234,6 +234,7 @@ void AppleRamdac::draw_hw_cursor(uint8_t *src_buf, uint8_t *dst_buf, int dst_pit
|
|||||||
uint8_t *src_row = src_buf + this->fb_pitch * this->cursor_ypos;
|
uint8_t *src_row = src_buf + this->fb_pitch * this->cursor_ypos;
|
||||||
uint8_t *dst_row = dst_buf + this->cursor_ypos * dst_pitch +
|
uint8_t *dst_row = dst_buf + this->cursor_ypos * dst_pitch +
|
||||||
this->cursor_xpos * sizeof(uint32_t);
|
this->cursor_xpos * sizeof(uint32_t);
|
||||||
|
int src_pitch = this->fb_pitch;
|
||||||
|
|
||||||
uint32_t *color = &this->cursor_clut[0];
|
uint32_t *color = &this->cursor_clut[0];
|
||||||
|
|
||||||
@ -255,7 +256,7 @@ void AppleRamdac::draw_hw_cursor(uint8_t *src_buf, uint8_t *dst_buf, int dst_pit
|
|||||||
}
|
}
|
||||||
dst_16 += 16 * sizeof(uint32_t);
|
dst_16 += 16 * sizeof(uint32_t);
|
||||||
}
|
}
|
||||||
src_row += this->fb_pitch;
|
src_row += src_pitch;
|
||||||
dst_row += dst_pitch;
|
dst_row += dst_pitch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user