Re: Redrawing a widget



Ignacio Nodal wrote:
>   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>   gtk_widget_draw(_glarea, &area);
>   g_print("Cleared Rectangle:(%d,%d)
> (%d,%d)\n",area.x,area.y,area.width,area.height);

  Just a guess, but are you missing a call to XFlush() to actually force
the thing to be drawn?

  e.g., XFlush( GDK_DISPLAY() );

-- 
=====================- http://www.thalesgroup.com/ -=====================
Neil Bird                          |  If this .signature   |
  work mailto:neil bird rdel co uk |  looks pants, then    | $> cd /pub
  personal mailto:neil fnxweb com  |  stop using Outlook!  | $> more beer




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]