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:13 +0200
commit49aa56ccfc59cc18514f304dd014abb382184de1 (patch)
tree5912008d0b673cd8b70471ce6298b0b7152bb44e
parentf46fea07c2180f57857f6586b32373099a25118e (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);
}