Changeset a35b458 in mainline for uspace/lib/c/include/io/pixelmap.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/pixelmap.h
r3061bc1 ra35b458 47 47 /* Pixels outside of a pixmap are PIXEL(0, 0, 0, 0) */ 48 48 PIXELMAP_EXTEND_TRANSPARENT_BLACK = 0, 49 49 50 50 /* The pixmap is repeated infinetely */ 51 51 PIXELMAP_EXTEND_TILE, 52 52 53 53 /* If outside of a pixmap, return closest pixel from the edge */ 54 54 PIXELMAP_EXTEND_SIDES, 55 55 56 56 /* If outside of a pixmap, return closest pixel from the edge, 57 57 * with alpha = 0 … … 125 125 transparent = transparent_outside; 126 126 } 127 127 128 128 if (y < 0) { 129 129 y = 0; … … 135 135 } 136 136 } 137 137 138 138 if (x < 0 || ((sysarg_t) x) >= pixmap->width || 139 139 y < 0 || ((sysarg_t) y) >= pixmap->height) … … 141 141 142 142 pixel_t pixel = pixelmap_get_pixel(pixmap, x, y); 143 143 144 144 if (transparent) 145 145 pixel = PIXEL(0, RED(pixel), GREEN(pixel), BLUE(pixel)); 146 146 147 147 return pixel; 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.