mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Improved the style of the control rendering.
This commit is contained in:
+3
-2
@@ -62,13 +62,14 @@ void MapperGLCanvas::draw(QPainter* painter)
|
||||
|
||||
void MapperGLCanvas::enterDraw(QPainter* painter)
|
||||
{
|
||||
Q_UNUSED(painter);
|
||||
|
||||
// Clear to black.
|
||||
qglClearColor(Qt::black);
|
||||
|
||||
// Clear buffer.
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
// Antialiasing.
|
||||
painter->setRenderHint(QPainter::Antialiasing);
|
||||
}
|
||||
|
||||
void MapperGLCanvas::exitDraw(QPainter* painter)
|
||||
|
||||
Reference in New Issue
Block a user