Skip to content

Commit a791f28

Browse files
committed
typos.
1 parent 62a0b29 commit a791f28

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

relight/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <QTimer>
1414
#include <QIcon>
1515
#include <QPixmap>
16+
#include <QImageReader>
1617
#include "mainwindow.h"
1718
#include "processqueue.h"
1819
#include <iostream>
@@ -72,7 +73,7 @@ int main(int argc, char *argv[]) {
7273
QApplication app(argc, argv);
7374
#if QT_VERSION >= 0x060000
7475
//large images wont load because of this limit!
75-
QImage::setAllocationLimit(32768*32768*4);
76+
QImageReader::setAllocationLimit(uint62_t(1)<<32);
7677
#endif
7778
QCoreApplication::setOrganizationName("VCG");
7879
QCoreApplication::setOrganizationDomain("vcg.isti.cnr.it");

relightlab/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <QVBoxLayout>
44
#include <QPushButton>
55
#include <QLabel>
6+
#include <QImageReader>
67

78
#include "relightapp.h"
89
#include "mainwindow.h"
@@ -23,7 +24,7 @@ int main(int argc, char *argv[]) {
2324

2425
#if QT_VERSION >= 0x060000
2526
//large images wont load because of this limit!
26-
QImage::setAllocationLimit(32768*32768*4);
27+
QImageReader::setAllocationLimit(uint62_t(1)<<32);
2728
#endif
2829

2930

0 commit comments

Comments
 (0)