mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
#5186 Remove Dpi calculation code
This commit is contained in:
parent
c62c4d503d
commit
cf397a0d6f
7 changed files with 14 additions and 244 deletions
|
@ -33,7 +33,6 @@
|
|||
#include "synergy/KeyState.h"
|
||||
#include "synergy/Screen.h"
|
||||
#include "synergy/PacketStreamFilter.h"
|
||||
#include "synergy/DpiHelper.h"
|
||||
#include "net/TCPSocket.h"
|
||||
#include "net/IDataSocket.h"
|
||||
#include "net/IListenSocket.h"
|
||||
|
@ -2004,14 +2003,6 @@ Server::onMouseMoveSecondary(SInt32 dx, SInt32 dy)
|
|||
SInt32 newX = m_x;
|
||||
SInt32 newY = m_y;
|
||||
|
||||
if (DpiHelper::s_dpiScaled) {
|
||||
// only scale if it's going back to server
|
||||
if (newScreen->isPrimary()) {
|
||||
newX = (SInt32)(newX / DpiHelper::getDpi());
|
||||
newY = (SInt32)(newY / DpiHelper::getDpi());
|
||||
}
|
||||
}
|
||||
|
||||
// switch screens
|
||||
switchScreen(newScreen, newX, newY, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue