Lines Matching refs:hDC
41 pwfb->hDC = hdc; in wmesa_new_framebuffer()
57 if (pwfb->hDC == hdc) in wmesa_free_framebuffer()
80 if (pwfb->hDC == hdc) in wmesa_lookup_framebuffer()
119 static void wmSetPixelFormat(WMesaFramebuffer pwfb, HDC hDC) in wmSetPixelFormat() argument
121 pwfb->cColorBits = GetDeviceCaps(hDC, BITSPIXEL); in wmSetPixelFormat()
160 pbmi->bmiHeader.biBitCount = GetDeviceCaps(pwfb->hDC, BITSPIXEL); in wmCreateBackingStore()
184 wmSetPixelFormat(pwfb, pwfb->hDC); in wmCreateBackingStore()
224 get_window_size(pwfb->hDC, width, height); in wmesa_get_buffer_size()
233 BitBlt(pwfb->hDC, 0, 0, pwfb->Base.Width, pwfb->Base.Height, in wmesa_flush()
399 HDC DC = pwc->hDC; in clear()
441 WMesaFramebuffer pwfb = wmesa_lookup_framebuffer(pwc->hDC); in write_rgba_span_front()
459 SetPixel(pwc->hDC, x+i, y, in write_rgba_span_front()
464 SetPixel(pwc->hDC, x+i, y, in write_rgba_span_front()
502 mdc=CreateCompatibleDC(pwfb->hDC); in write_rgba_span_front()
505 BitBlt(pwfb->hDC, x, y, n, 1, mdc, 0, 0, SRCCOPY); in write_rgba_span_front()
528 SetPixel(pwc->hDC, x[i], FLIP(y[i]), in write_rgba_pixels_front()
547 Color = GetPixel(pwc->hDC, x+i, y); in read_rgba_span_front()
568 Color = GetPixel(pwc->hDC, x[i], y2); in read_rgba_pixels_front()
1003 WMesaContext WMesaCreateContext(HDC hDC, in WMesaCreateContext() argument
1029 if(WindowFromDC(hDC) != NULL) { in WMesaCreateContext()
1030 c->hDC = GetDC(WindowFromDC(hDC)); /* huh ???? */ in WMesaCreateContext()
1033 c->hDC = hDC; in WMesaCreateContext()
1036 c->hDC = hDC; in WMesaCreateContext()
1049 switch (GetDeviceCaps(c->hDC, BITSPIXEL)) { in WMesaCreateContext()
1130 pwfb = wmesa_lookup_framebuffer(pwc->hDC); in WMesaDestroyContext()
1134 wmesa_free_framebuffer(pwc->hDC); in WMesaDestroyContext()
1138 if (WindowFromDC(pwc->hDC) != NULL) in WMesaDestroyContext()
1140 ReleaseDC(WindowFromDC(pwc->hDC), pwc->hDC); in WMesaDestroyContext()
1185 if (pwc && c == pwc && pwc->hDC == hdc) in WMesaMakeCurrent()
1248 if (pwc->hDC == hdc) { in WMesaSwapBuffers()
1251 BitBlt(pwfb->hDC, 0, 0, pwfb->Base.Width, pwfb->Base.Height, in WMesaSwapBuffers()