git-svn-id: svn://db.shs.com.ru/libs@626 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -113,10 +113,12 @@ QGLView::~QGLView() {
|
||||
|
||||
void QGLView::stop() {
|
||||
if (timer) killTimer(timer);
|
||||
timer = 0;
|
||||
}
|
||||
|
||||
|
||||
void QGLView::start(float freq) {
|
||||
stop();
|
||||
timer = startTimer(freq <= 0.f ? 0 : int(1000.f / freq));
|
||||
}
|
||||
|
||||
@@ -253,6 +255,7 @@ void QGLView::timerEvent(QTimerEvent *) {
|
||||
|
||||
|
||||
void QGLView::render() {
|
||||
if (!isVisible()) return;
|
||||
resizeGL(width(), height());
|
||||
QRect g_rect(QPoint(), size());
|
||||
emit glBeforePaint();
|
||||
|
||||
Reference in New Issue
Block a user