aboutsummaryrefslogtreecommitdiff
path: root/src/glbits.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glbits.c')
-rw-r--r--src/glbits.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glbits.c b/src/glbits.c
index d32fc0c..ba03adf 100644
--- a/src/glbits.c
+++ b/src/glbits.c
@@ -676,8 +676,8 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
GLfloat w = dw->drawing_area->allocation.width;
GLfloat h = dw->drawing_area->allocation.height;
GLfloat aspect = w/h;
- GLfloat bg_top[] = { 0.6, 0.9, 0.8, 1.0 };
- GLfloat bg_bot[] = { 0.3, 0.7, 0.5, 1.0 };
+ GLfloat bg_top[] = { 0.0, 0.3, 1.0, 1.0 };
+ GLfloat bg_bot[] = { 0.0, 0.7, 1.0, 1.0 };
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -934,6 +934,7 @@ gint glbits_realise(GtkWidget *widget, DisplayWindow *dw) {
glbits_set_ortho(dw, w, h);
glbits_first_prepare(dw);
+ dw->realised = 1;
gdk_gl_drawable_gl_end(gldrawable);