MCPcopy Create free account
hub / github.com/cmauri/eviacam / RecomputeWorkingArea

Method RecomputeWorkingArea

wxutil/mousecontrol.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void CMouseControl::RecomputeWorkingArea ()
197{
198 m_minScreenX= (m_ScreenWidth -
199 (int) ((float) m_ScreenWidth * m_leftPercent)) / 2;
200 m_minScreenY= (m_ScreenHeight -
201 (int) ((float) m_ScreenHeight * m_topPercent)) / 2;
202 m_maxScreenX= (m_ScreenWidth - 1) - (m_ScreenWidth -
203 (int) ((float) m_ScreenWidth * m_rightPercent)) / 2;
204 m_maxScreenY= (m_ScreenHeight - 1) - (m_ScreenHeight -
205 (int) ((float) m_ScreenHeight * m_bottomPercent)) / 2;
206}
207
208void CMouseControl::SetRelAcceleration2 (long delta0, float factor0,
209 long delta1, float factor1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected