Compare commits
No commits in common. "edcebff3113b5621d2e832c29251772436e84e81" and "fc6fb9dc096a3df1991c8c534af49870abf857b3" have entirely different histories.
edcebff311
...
fc6fb9dc09
|
@ -25,8 +25,6 @@ struct command
|
|||
uint32_t *masks;
|
||||
/* Whether the first column is real (ie. x>=0) or not */
|
||||
int real_start;
|
||||
/* Whether the last column is written to VRAM */
|
||||
int real_end;
|
||||
|
||||
/* Ignored elements between two rendered grid rows */
|
||||
int vram_stride;
|
||||
|
@ -105,7 +103,7 @@ void bopti_grid(void **layer, int rows, struct command *c)
|
|||
offset++;
|
||||
}
|
||||
|
||||
if(c->real_end) v1[offset] = pret.r;
|
||||
if(c->x) v1[offset] = pret.r;
|
||||
|
||||
*layer += c->data_stride;
|
||||
offset += c->vram_stride;
|
||||
|
@ -139,7 +137,7 @@ void bopti_grid(void **layer, int rows, struct command *c)
|
|||
offset++;
|
||||
}
|
||||
|
||||
if(c->real_end)
|
||||
if(c->x)
|
||||
{
|
||||
v1[offset] = qret.r1;
|
||||
v2[offset] = qret.r2;
|
||||
|
@ -203,7 +201,6 @@ void bopti_render(bopti_image_t const *img, struct rbox *rbox, uint32_t *v1,
|
|||
.columns = rbox->columns,
|
||||
.masks = masks + 2 * left_origin,
|
||||
.real_start = (left_origin > 0),
|
||||
.real_end = (rbox->x & 31) && (left_origin + img_columns < 5),
|
||||
.vram_stride = 4 - rbox->columns,
|
||||
.data_stride = ((img_columns - rbox->columns) << 2) * layers,
|
||||
.gray = (v2 != NULL),
|
||||
|
|
Loading…
Reference in New Issue