$OpenBSD$

Index: src/Layers/xrRender/r__screenshot.cpp
--- src/Layers/xrRender/r__screenshot.cpp.orig
+++ src/Layers/xrRender/r__screenshot.cpp
@@ -61,8 +61,8 @@ bool CreateImage(fipMemoryIO& output, FREE_IMAGE_FORMA
     const u8 tgaHeader[12] = { 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     const u8 header[6] =
     {
-        width % 256, width / 256,
-        height % 256, height / 256,
+        static_cast<u8>(width % 256), static_cast<u8>(width / 256),
+        static_cast<u8>(height % 256), static_cast<u8>(height / 256),
         bits, 0
     };
 
