Changes in uspace/lib/memgfx/src/memgc.c [0d62c10:5271e4c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/memgfx/src/memgc.c
r0d62c10 r5271e4c 225 225 226 226 /* Check that we support all requested flags */ 227 if ((params->flags & ~(bmpf_color_key | bmpf_colorize | 228 bmpf_direct_output)) != 0) 227 if ((params->flags & ~(bmpf_color_key | bmpf_direct_output)) != 0) 229 228 return ENOTSUP; 230 229 … … 368 367 /* Nothing to do */ 369 368 } else if ((mbm->flags & bmpf_color_key) == 0) { 370 /* Simple copy */371 369 for (y = drect.p0.y; y < drect.p1.y; y++) { 372 370 for (x = drect.p0.x; x < drect.p1.x; x++) { … … 377 375 } 378 376 } 379 } else if ((mbm->flags & bmpf_colorize) == 0) { 380 /* Color key */ 377 } else { 381 378 for (y = drect.p0.y; y < drect.p1.y; y++) { 382 379 for (x = drect.p0.x; x < drect.p1.x; x++) { … … 388 385 } 389 386 } 390 } else {391 /* Color key & colorization */392 for (y = drect.p0.y; y < drect.p1.y; y++) {393 for (x = drect.p0.x; x < drect.p1.x; x++) {394 pixel = pixelmap_get_pixel(&smap,395 x - mbm->rect.p0.x - offs.x,396 y - mbm->rect.p0.y - offs.y);397 if (pixel != mbm->key_color)398 pixelmap_put_pixel(&dmap, x, y,399 mbm->mgc->color);400 }401 }402 387 } 403 388
Note:
See TracChangeset
for help on using the changeset viewer.