summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-10-10 00:57:13 +0200
committerCarl Hetherington <cth@carlh.net>2019-10-10 00:57:34 +0200
commitfe79aeb6b8d3938db8dc8382b807014be22fc692 (patch)
tree3c625810d7966bdbb1dd69156ca3b533ea4ed7cf
parent96e24f835b07dc37fa2840a0b972c08d28bbd0f4 (diff)
Fix enum confusion.
-rw-r--r--src/stereo_picture_frame.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stereo_picture_frame.cc b/src/stereo_picture_frame.cc
index 8b8f9b91..72f59b36 100644
--- a/src/stereo_picture_frame.cc
+++ b/src/stereo_picture_frame.cc
@@ -79,9 +79,9 @@ shared_ptr<OpenJPEGImage>
StereoPictureFrame::xyz_image (Eye eye, int reduce) const
{
switch (eye) {
- case LEFT:
+ case EYE_LEFT:
return decompress_j2k (const_cast<uint8_t*> (_buffer->Left.RoData()), _buffer->Left.Size(), reduce);
- case RIGHT:
+ case EYE_RIGHT:
return decompress_j2k (const_cast<uint8_t*> (_buffer->Right.RoData()), _buffer->Right.Size(), reduce);
}