diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-30 17:16:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-30 17:16:55 +0000 |
commit | 04050c1685855a0640c7c0d5147299fadbd2ebe8 (patch) | |
tree | b0789947f5cc363950472c5f5a8b55048ca72d18 /src/math/color.cc | |
parent | d09a1be33a647aedc12ce5ddcb7ea4ee23a75c8c (diff) |
select-on-release
Diffstat (limited to 'src/math/color.cc')
-rw-r--r-- | src/math/color.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/color.cc b/src/math/color.cc index 0cf2ea8..231ec80 100644 --- a/src/math/color.cc +++ b/src/math/color.cc @@ -58,7 +58,8 @@ void Color::assign(float red, float green, float blue, float alpha) void Color::assign(Color const & other) { - memcpy(rgba_data, other.rgba_data, sizeof(rgba_data)); + for (int i =0; i < 4; i++) + rgba_data[i] = other.rgba_data[i]; } void Color::assign(float grey, float alpha) |