Changeset 444 in flair-src for trunk/tools/FlairGCS/src/Picture.cpp
- Timestamp:
- 09/10/21 14:37:55 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Picture.cpp
r443 r444 45 45 Picture::~Picture() { delete layout; } 46 46 47 void Picture::BufEvent(char **buf, int *buf_size, uint16_t period,uint16_t nb_buffering, 48 bool big_endian) { 47 void Picture::BufEvent(char **buf, int *buf_size, uint16_t period,uint16_t nb_buffering,bool big_endian) { 49 48 if (big_endian) 50 49 fprintf(stderr,"Picture::BufEvent, big endian not handled\n"); 51 50 52 if (IsEnabled() == false || RefreshRate_ms() != period) 53 return; 51 if (IsEnabled() == false || RefreshRate_ms() != period || NbBuffering()!=nb_buffering) return; 54 52 55 53 if ((*buf_size) >= im_width * im_height) { … … 89 87 90 88 a = menu->addAction("get frame"); 91 a->setEnabled(! auto_refresh);89 a->setEnabled(!IsEnabled()); 92 90 93 91 appendmenu(menu);
Note:
See TracChangeset
for help on using the changeset viewer.