~ubuntu-branches/debian/sid/x42-plugins/sid

« back to all changes in this revision

Viewing changes to robtk/ui_gl.c

  • Committer: Package Import Robot
  • Author(s): Jaromír Mikeš
  • Date: 2014-01-18 17:04:40 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140118170440-g38hz8mttoobqdla
Tags: 20140115-1
* Imported Upstream version 20140115.
* Added libjack-dev as build dep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
#if (defined USE_GUI_THREAD && defined HAVE_IDLE_IFACE)
233
233
        bool do_the_funky_resize;
234
234
#endif
 
235
        bool queue_canvas_realloc;
235
236
 
236
237
        void (* ui_closed)(void* controller);
237
238
        bool close_ui; // used by xternalui
562
563
#ifdef DEBUG_RESIZE
563
564
        printf("reallocate_canvas()\n");
564
565
#endif
 
566
        self->queue_canvas_realloc = false;
565
567
        if (self->cr) {
566
568
                glDeleteTextures (1, &self->texture_id);
567
569
                free (self->surf_data);
608
610
                        reallocate_canvas(self);
609
611
                        // fall-thru to scale
610
612
                case LVGL_ZOOM_TO_ASPECT:
 
613
                        if (self->queue_canvas_realloc) {
 
614
                                reallocate_canvas(self);
 
615
                        }
611
616
                        if (self->width == width && self->height == height) {
612
617
        self->xoff = 0; self->yoff = 0; self->xyscale = 1.0;
613
618
        glViewport (0, 0, self->width, self->height);
679
684
        printf("onResize()\n");
680
685
#endif
681
686
 
 
687
        if (*width != self->width || *height != self->height) {
 
688
                self->queue_canvas_realloc = true;
 
689
        }
 
690
 
682
691
        *width = self->width;
683
692
        *height = self->height;
684
693
        if (self->resize_toplevel) {
1034
1043
        self->view       = NULL;
1035
1044
        self->extui      = NULL;
1036
1045
        self->parent     = 0;
 
1046
        self->queue_canvas_realloc = false;
1037
1047
 
1038
1048
#if (defined USE_GUI_THREAD && defined THREADSYNC)
1039
1049
        pthread_mutex_init(&self->msg_thread_lock, NULL);