ソースを参照

Fixed pixel copy constructor

Eiyeron Fulmincendii 10 年 前
コミット
c19fd8966c
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/render/Pixel.cpp

+ 1 - 1
src/render/Pixel.cpp

@@ -6,7 +6,7 @@ PIXEL::Pixel(std::uint16_t color) : value(color)
 {
 }
 
-PIXEL::Pixel(Pixel &pix) : value((std::uint8_t) pix)
+PIXEL::Pixel(Pixel &pix) : value(pix.value)
 {
 }