summaryrefslogtreecommitdiffstats
path: root/vncviewer/Win32PixelBuffer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-22 12:54:26 +0200
committerPierre Ossman <ossman@cendio.se>2014-09-22 13:14:11 +0200
commit8ca4c1dec5c821c238c55563acc9fb9057329264 (patch)
tree64790ca926172492549d37ab58ca97c0177ed5a7 /vncviewer/Win32PixelBuffer.cxx
parentf05f355ba5390f4d686aa3028a292daca7ad0352 (diff)
downloadtigervnc-8ca4c1dec5c821c238c55563acc9fb9057329264.tar.gz
tigervnc-8ca4c1dec5c821c238c55563acc9fb9057329264.zip
Make sure user visible strings are translated
Diffstat (limited to 'vncviewer/Win32PixelBuffer.cxx')
-rw-r--r--vncviewer/Win32PixelBuffer.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vncviewer/Win32PixelBuffer.cxx b/vncviewer/Win32PixelBuffer.cxx
index 9fb04145..48718165 100644
--- a/vncviewer/Win32PixelBuffer.cxx
+++ b/vncviewer/Win32PixelBuffer.cxx
@@ -31,6 +31,7 @@
#include <rfb/LogWriter.h>
#include <rfb/Exception.h>
+#include "i18n.h"
#include "Win32PixelBuffer.h"
using namespace rfb;
@@ -59,7 +60,7 @@ Win32PixelBuffer::Win32PixelBuffer(int width, int height) :
DIB_RGB_COLORS, (void**)&data, NULL, 0);
if (!bitmap) {
int err = GetLastError();
- throw rdr::SystemException("unable to create DIB section", err);
+ throw rdr::SystemException(_("unable to create DIB section"), err);
}
}
@@ -76,10 +77,10 @@ void Win32PixelBuffer::draw(int src_x, int src_y, int x, int y, int w, int h)
dc = CreateCompatibleDC(fl_gc);
if (!dc)
- throw rdr::SystemException("CreateCompatibleDC failed", GetLastError());
+ throw rdr::SystemException(_("CreateCompatibleDC failed"), GetLastError());
if (!SelectObject(dc, bitmap))
- throw rdr::SystemException("SelectObject failed", GetLastError());
+ throw rdr::SystemException(_("SelectObject failed"), GetLastError());
if (!BitBlt(fl_gc, x, y, w, h, dc, src_x, src_y, SRCCOPY)) {
// If the desktop we're rendering to is inactive (like when the screen
@@ -88,7 +89,7 @@ void Win32PixelBuffer::draw(int src_x, int src_y, int x, int y, int w, int h)
// with it. For now, we've only seen this error and for this function
// so only ignore this combination.
if (GetLastError() != ERROR_INVALID_HANDLE)
- throw rdr::SystemException("BitBlt failed", GetLastError());
+ throw rdr::SystemException(_("BitBlt failed"), GetLastError());
}
DeleteDC(dc);