Lines Matching defs:source
19 // 2. Altered source versions must be plainly marked as such, and must not
22 // 3. This notice may not be removed or altered from any source
173 unsigned char* source = (unsigned char*) image->pixels;
175 for (int i = 0; i < image->width * image->height; i++, source += 4)
177 unsigned int alpha = source[3];
179 *target++ = (unsigned char) ((source[2] * alpha) / 255);
180 *target++ = (unsigned char) ((source[1] * alpha) / 255);
181 *target++ = (unsigned char) ((source[0] * alpha) / 255);
2138 if (ctxconfig->source == GLFW_EGL_CONTEXT_API ||
2139 ctxconfig->source == GLFW_NATIVE_CONTEXT_API)
2156 else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API)
3081 struct wl_data_source* source,
3084 if (_glfw.wl.selectionSource != source)
3087 "Wayland: Unknown clipboard data source");
3093 struct wl_data_source* source,
3098 if (_glfw.wl.selectionSource != source ||
3130 struct wl_data_source* source)
3132 wl_data_source_destroy(source);
3134 if (_glfw.wl.selectionSource != source)
3170 "Wayland: Failed to create clipboard data source");