Commit c0d05f9e authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio

Simplify the code in an inner loop to avoid a few skips.

Credit to Frediano Ziglio.
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent 97517317
......@@ -622,10 +622,7 @@ int display_scan_whole_screen(display_t *d, int num_vertical_tiles, int num_hori
multiple of 32 */
int ystart = (v_tile * d->fullscreen->h) / num_vertical_tiles;
int yend = ((v_tile + 1) * d->fullscreen->h) / num_vertical_tiles;
for (y = ystart; y < yend; y++) {
if (y >= d->fullscreen->h)
continue;
for (y = ystart; y < yend && y < d->fullscreen->h; y++) {
uint32_t *old = ((uint32_t *) d->fullscreen->segment.shmaddr) +
(y * d->fullscreen->w);
uint32_t *new = ((uint32_t *) fullscreen_new->segment.shmaddr) +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment