Changeset View
Changeset View
Standalone View
Standalone View
stand/common/gfx_fb.c
Show First 20 Lines • Show All 1,184 Lines • ▼ Show 20 Lines | if (is_same_pixel(&screen_buffer[soffset + x], | ||||
if (mark) { | if (mark) { | ||||
gfx_fb_copy_area(state, &sr, &dp); | gfx_fb_copy_area(state, &sr, &dp); | ||||
mark = false; | mark = false; | ||||
} | } | ||||
} else { | } else { | ||||
screen_buffer[doffset + x] = screen_buffer[soffset + x]; | screen_buffer[doffset + x] = screen_buffer[soffset + x]; | ||||
if (mark) { | if (mark) { | ||||
/* update end point */ | /* update end point */ | ||||
sr.tr_end.tp_col = s->tp_col + x;; | sr.tr_end.tp_col = s->tp_col + x; | ||||
} else { | } else { | ||||
/* set up new rectangle */ | /* set up new rectangle */ | ||||
mark = true; | mark = true; | ||||
sr.tr_begin.tp_col = s->tp_col + x; | sr.tr_begin.tp_col = s->tp_col + x; | ||||
sr.tr_begin.tp_row = s->tp_row; | sr.tr_begin.tp_row = s->tp_row; | ||||
sr.tr_end.tp_col = s->tp_col + x; | sr.tr_end.tp_col = s->tp_col + x; | ||||
sr.tr_end.tp_row = s->tp_row; | sr.tr_end.tp_row = s->tp_row; | ||||
dp.tp_col = d->tp_col + x; | dp.tp_col = d->tp_col + x; | ||||
▲ Show 20 Lines • Show All 1,721 Lines • Show Last 20 Lines |