Lines Matching defs:pwc

257     WMesaContext pwc = wmesa_context(ctx);
278 pwc->clearColorRef = RGB(col[0], col[1], col[2]);
279 DeleteObject(pwc->clearPen);
280 DeleteObject(pwc->clearBrush);
281 pwc->clearPen = CreatePen(PS_SOLID, 1, pwc->clearColorRef);
282 pwc->clearBrush = CreateSolidBrush(pwc->clearColorRef);
305 bColor = BGR8(GetRValue(pwc->clearColorRef),
306 GetGValue(pwc->clearColorRef),
307 GetBValue(pwc->clearColorRef));
313 wColor = BGR16(GetRValue(pwc->clearColorRef),
314 GetGValue(pwc->clearColorRef),
315 GetBValue(pwc->clearColorRef));
325 if (GetRValue(pwc->clearColorRef) ==
326 GetGValue(pwc->clearColorRef) &&
327 GetRValue(pwc->clearColorRef) ==
328 GetBValue(pwc->clearColorRef)) {
330 GetRValue(pwc->clearColorRef),
350 bColor = BGR8(GetRValue(pwc->clearColorRef),
351 GetGValue(pwc->clearColorRef),
352 GetBValue(pwc->clearColorRef));
357 wColor = BGR16(GetRValue(pwc->clearColorRef),
358 GetGValue(pwc->clearColorRef),
359 GetBValue(pwc->clearColorRef));
365 r = GetRValue(pwc->clearColorRef);
366 g = GetGValue(pwc->clearColorRef);
367 b = GetBValue(pwc->clearColorRef);
376 dwColor = BGR32(GetRValue(pwc->clearColorRef),
377 GetGValue(pwc->clearColorRef),
378 GetBValue(pwc->clearColorRef));
399 HDC DC = pwc->hDC;
400 HPEN Old_Pen = SelectObject(DC, pwc->clearPen);
401 HBRUSH Old_Brush = SelectObject(DC, pwc->clearBrush);
440 WMesaContext pwc = wmesa_context(ctx);
441 WMesaFramebuffer pwfb = wmesa_lookup_framebuffer(pwc->hDC);
459 SetPixel(pwc->hDC, x+i, y,
464 SetPixel(pwc->hDC, x+i, y,
524 WMesaContext pwc = wmesa_context(ctx);
528 SetPixel(pwc->hDC, x[i], FLIP(y[i]),
542 WMesaContext pwc = wmesa_context(ctx);
547 Color = GetPixel(pwc->hDC, x+i, y);
563 WMesaContext pwc = wmesa_context(ctx);
568 Color = GetPixel(pwc->hDC, x[i], y2);
580 #define WMSETPIXEL32(pwc, y, x, r, g, b) { \
581 LPDWORD lpdw = ((LPDWORD)((pwc)->pbPixels + (pwc)->ScanWidth * (y)) + (x)); \
685 #define WMSETPIXEL24(pwc, y, x, r, g, b) { \
686 LPBYTE lpb = ((LPBYTE)((pwc)->pbPixels + (pwc)->ScanWidth * (y)) + (3 * x)); \
790 #define WMSETPIXEL16(pwc, y, x, r, g, b) { \
791 LPWORD lpw = ((LPWORD)((pwc)->pbPixels + (pwc)->ScanWidth * (y)) + (x)); \
1118 void WMesaDestroyContext( WMesaContext pwc )
1120 struct gl_context *ctx = &pwc->gl_ctx;
1130 pwfb = wmesa_lookup_framebuffer(pwc->hDC);
1134 wmesa_free_framebuffer(pwc->hDC);
1138 if (WindowFromDC(pwc->hDC) != NULL)
1140 ReleaseDC(WindowFromDC(pwc->hDC), pwc->hDC);
1142 DeleteObject(pwc->clearPen);
1143 DeleteObject(pwc->clearBrush);
1153 free(pwc);
1184 WMesaContext pwc = wmesa_context(ctx);
1185 if (pwc && c == pwc && pwc->hDC == hdc)
1237 WMesaContext pwc = wmesa_context(ctx);
1248 if (pwc->hDC == hdc) {