MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / bitmap_has_alpha

Function bitmap_has_alpha

src/render/plugins/dda_capture/cursor_capture.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 static inline bool bitmap_has_alpha(uint8_t *data, long num_pixels) {
44 for (long i = 0; i < num_pixels; i++) {
45 if (data[i * 4 + 3] != 0) {
46 return true;
47 }
48 }
49 return false;
50 }
51
52 static inline void apply_mask(uint8_t *color, uint8_t *mask, long num_pixels) {
53 for (long i = 0; i < num_pixels; i++)

Callers 1

copy_from_colorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected