Skip to content

Commit

Permalink
exrdisplay: limit maximum image size based on available screen resolu…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman authored and cary-ilm committed Feb 10, 2020
1 parent 2c37c4b commit d06c223
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenEXR_Viewers/exrdisplay/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ makeMainWindow (const char imageFile[],
Header header;
int zsize;

//
// limit maximum size to twice screen resolution
//
Header::setMaxImageSize(Fl::w()*2 , Fl::h()*2);

//
//pass 0 as partnum for the first load
//
Expand Down

0 comments on commit d06c223

Please sign in to comment.