summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-26 20:34:09 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-26 20:35:42 +0200
commitf2d039f67743c7588df5cfd725915627b6efb0ba (patch)
tree8039162bdfd706236e11753db99a968a5b85fcb5 /canvas
parent423f709ad78b2de2f29484cf444a429018c1b246 (diff)
canvas: error C2397: conversion from 'size_t' to 'BYTE' requires ...
a narrowing conversion (at least other people's MSVC says so, mine doesn't complain) Change-Id: Ic87da76567778884b81361067075fd9325e2d276
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_canvasbitmap.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index e2e249a9da47..35877ddb639b 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -68,7 +68,8 @@ namespace dxcanvas
{
// this here fills palette with grey level colors, starting
// from 0,0,0 up to 255,255,255
- bmiColors[i] = { i,i,i,i };
+ BYTE const b(i);
+ bmiColors[i] = { b,b,b,b };
}
}
};