MCPcopy Create free account
hub / github.com/NetHack/NetHack / back_buffer_allocate

Function back_buffer_allocate

win/win32/mhstatus.c:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void back_buffer_allocate(back_buffer_t * back_buffer, int width, int height)
46{
47 HDC hdc = GetDC(back_buffer->hWnd);
48 back_buffer->bm = CreateCompatibleBitmap(hdc, width, height);
49 back_buffer->orig_bm = SelectObject(back_buffer->hdc, back_buffer->bm);
50 back_buffer->width = width;
51 back_buffer->height = height;
52 ReleaseDC(back_buffer->hWnd, hdc);
53}
54
55void back_buffer_size(back_buffer_t * back_buffer, int width, int height)
56{

Callers 1

back_buffer_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected