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

Function CorrectWindowWidth

bwapi/BWAPI/Source/WMode.cpp:190–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void CorrectWindowWidth(int type, SIZE *ws, RECT *rct, SIZE *border)
191{
192 switch ( type )
193 {
194 case WMSZ_LEFT:
195 case WMSZ_TOPLEFT:
196 case WMSZ_BOTTOMLEFT:
197 rct->left = rct->right - ws->cx - border->cx;
198 break;
199 case WMSZ_RIGHT:
200 case WMSZ_TOPRIGHT:
201 case WMSZ_BOTTOMRIGHT:
202 rct->right = rct->left + ws->cx + border->cx;
203 break;
204 }
205}
206void CorrectWindowHeight(int type, SIZE *ws, RECT *rct, SIZE *border)
207{
208 switch ( type )

Callers 1

WindowProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected