MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CALC_PIXELS_WITH_ASPECTX

Function CALC_PIXELS_WITH_ASPECTX

editor/editor.cpp:1130–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130int CALC_PIXELS_WITH_ASPECTX(int pixels) {
1131 float scr_aspect_x = ((float)GetSystemMetrics(SM_CXSCREEN)) / ((float)EDITOR_RESOLUTION_X);
1132 return (int)(scr_aspect_x * (float)(pixels));
1133}
1134
1135int CALC_PIXELS_WITH_ASPECTY(int pixels) {
1136 float scr_aspect_y = ((float)GetSystemMetrics(SM_CYSCREEN)) / ((float)EDITOR_RESOLUTION_Y);

Callers 1

CreateChildViewsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected