diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-10 21:24:21 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-04 14:03:13 +0100 |
commit | 77f0a61ec8f1488d6042b1370444bb2612604292 (patch) | |
tree | 76a965e971e87e53abd0f7cb45c1baa7fbe52e99 /win/rfb_win32/SDisplay.cxx | |
parent | 2047dae22fb862ff43309ebb4fe2b9e7d6ce6153 (diff) | |
download | tigervnc-77f0a61ec8f1488d6042b1370444bb2612604292.tar.gz tigervnc-77f0a61ec8f1488d6042b1370444bb2612604292.zip |
Get rid of TCHAR magic
We never use Windows' "UNICODE" mode anyway, so let's get rid of this
complexity.
Diffstat (limited to 'win/rfb_win32/SDisplay.cxx')
-rw-r--r-- | win/rfb_win32/SDisplay.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/SDisplay.cxx b/win/rfb_win32/SDisplay.cxx index c381c412..02ef548d 100644 --- a/win/rfb_win32/SDisplay.cxx +++ b/win/rfb_win32/SDisplay.cxx @@ -448,9 +448,9 @@ SDisplay::recreatePixelBuffer(bool force) { // Opening the whole display with CreateDC doesn't work on multi-monitor // systems for some reason. DeviceContext* new_device = 0; - TCharArray deviceName(displayDevice.getData()); + CharArray deviceName(displayDevice.getData()); if (deviceName.buf[0]) { - vlog.info("Attaching to device %s", (const char*)CStr(deviceName.buf)); + vlog.info("Attaching to device %s", deviceName.buf); new_device = new DeviceDC(deviceName.buf); } if (!new_device) { @@ -461,7 +461,7 @@ SDisplay::recreatePixelBuffer(bool force) { // Get the coordinates of the specified dispay device Rect newScreenRect; if (deviceName.buf[0]) { - MonitorInfo info(CStr(deviceName.buf)); + MonitorInfo info(deviceName.buf); newScreenRect = Rect(info.rcMonitor.left, info.rcMonitor.top, info.rcMonitor.right, info.rcMonitor.bottom); } else { |