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

Function CALC_PIXELS_WITH_ASPECTY

editor/editor.cpp:1135–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133}
1134
1135int CALC_PIXELS_WITH_ASPECTY(int pixels) {
1136 float scr_aspect_y = ((float)GetSystemMetrics(SM_CYSCREEN)) / ((float)EDITOR_RESOLUTION_Y);
1137 return (int)(scr_aspect_y * (float)(pixels));
1138}
1139
1140// Move the viewer object. This should be called whenever the viewer object is moved
1141void MoveViewer(vector *pos, int roomnum, matrix *orient) {

Callers 1

CreateChildViewsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected