Home | History | Annotate | Download | only in gdi

Lines Matching refs:hDC

32  * given HDC (Window handle).
35 wmesa_new_framebuffer(HDC hdc, struct gl_config *visual)
41 pwfb->hDC = hdc;
50 * Given an hdc, free the corresponding WMesaFramebuffer
53 wmesa_free_framebuffer(HDC hdc)
57 if (pwfb->hDC == hdc)
73 * Given an hdc, return the corresponding WMesaFramebuffer
76 wmesa_lookup_framebuffer(HDC hdc)
80 if (pwfb->hDC == hdc)
119 static void wmSetPixelFormat(WMesaFramebuffer pwfb, HDC hDC)
121 pwfb->cColorBits = GetDeviceCaps(hDC, BITSPIXEL);
154 HDC hic;
160 pbmi->bmiHeader.biBitCount = GetDeviceCaps(pwfb->hDC, BITSPIXEL);
184 wmSetPixelFormat(pwfb, pwfb->hDC);
200 * Find the width and height of the window named by hdc.
203 get_window_size(HDC hdc, GLuint *width, GLuint *height)
205 if (WindowFromDC(hdc)) {
207 GetClientRect(WindowFromDC(hdc), &rect);
214 *width = GetDeviceCaps(hdc, HORZRES);
215 *height = GetDeviceCaps(hdc, VERTRES);
224 get_window_size(pwfb->hDC, width, height);
233 BitBlt(pwfb->hDC, 0, 0, pwfb->Base.Width, pwfb->Base.Height,
399 HDC DC = pwc->hDC;
441 WMesaFramebuffer pwfb = wmesa_lookup_framebuffer(pwc->hDC);
443 HDC mdc=0;
459 SetPixel(pwc->hDC, x+i, y,
464 SetPixel(pwc->hDC, x+i, y,
470 _mesa_problem(NULL, "wmesa: write_rgba_span_front on unknown hdc");
502 mdc=CreateCompatibleDC(pwfb->hDC);
505 BitBlt(pwfb->hDC, x, y, n, 1, mdc, 0, 0, SRCCOPY);
528 SetPixel(pwc->hDC, x[i], FLIP(y[i]),
547 Color = GetPixel(pwc->hDC, x+i, y);
568 Color = GetPixel(pwc->hDC, x[i], y2);
1003 WMesaContext WMesaCreateContext(HDC hDC,
1029 if(WindowFromDC(hDC) != NULL) {
1030 c->hDC = GetDC(WindowFromDC(hDC)); /* huh ???? */
1033 c->hDC = hDC;
1036 c->hDC = hDC;
1049 switch (GetDeviceCaps(c->hDC, BITSPIXEL)) {
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);
1177 void WMesaMakeCurrent(WMesaContext c, HDC hdc)
1185 if (pwc && c == pwc && pwc->hDC == hdc)
1189 pwfb = wmesa_lookup_framebuffer(hdc);
1192 if (c && !pwfb && hdc) {
1197 get_window_size(hdc, &width, &height);
1202 pwfb = wmesa_new_framebuffer(hdc, visual);
1234 void WMesaSwapBuffers( HDC hdc )
1238 WMesaFramebuffer pwfb = wmesa_lookup_framebuffer(hdc);
1241 _mesa_problem(NULL, "wmesa: swapbuffers on unknown hdc");
1248 if (pwc->hDC == hdc) {
1251 BitBlt(pwfb->hDC, 0, 0, pwfb->Base.Width, pwfb->Base.Height,