MCPcopy Create free account
hub / github.com/bwapi/bwapi / CorrectWindowHeight

Function CorrectWindowHeight

bwapi/BWAPI/Source/WMode.cpp:206–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205}
206void CorrectWindowHeight(int type, SIZE *ws, RECT *rct, SIZE *border)
207{
208 switch ( type )
209 {
210 case WMSZ_TOP:
211 case WMSZ_TOPLEFT:
212 case WMSZ_TOPRIGHT:
213 rct->top = rct->bottom - ws->cy - border->cy;
214 break;
215 case WMSZ_BOTTOM:
216 case WMSZ_BOTTOMRIGHT:
217 case WMSZ_BOTTOMLEFT:
218 rct->bottom = rct->top + ws->cy + border->cy;
219 break;
220 }
221}
222
223LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
224{

Callers 1

WindowProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected