X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fstonerview.c;h=0e11395e2ace623c7c2b8c2603daddba80e4e598;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=0354431b65b33a8cddbb94366db1427e9d7f622e;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/glx/stonerview.c b/hacks/glx/stonerview.c index 0354431b..0e11395e 100644 --- a/hacks/glx/stonerview.c +++ b/hacks/glx/stonerview.c @@ -88,8 +88,6 @@ init_stonerview (ModeInfo *mi) fprintf(stderr, "%s: out of memory\n", progname); exit(1); } - - bp = &bps[MI_SCREEN(mi)]; } bp = &bps[MI_SCREEN(mi)]; @@ -97,10 +95,11 @@ init_stonerview (ModeInfo *mi) bp->glx_context = init_GL(mi); bp->trackball = gltrackball_init (); - bp->st = init_view(MI_IS_WIREFRAME(mi), transparent_p); - init_move(bp->st); + bp->st = stonerview_init_view(MI_IS_WIREFRAME(mi), transparent_p); + stonerview_init_move(bp->st); reshape_stonerview (mi, MI_WIDTH(mi), MI_HEIGHT(mi)); + clear_gl_error(); /* WTF? sometimes "invalid op" from glViewport! */ } @@ -112,10 +111,12 @@ draw_stonerview (ModeInfo *mi) glXMakeCurrent(MI_DISPLAY(mi), MI_WINDOW(mi), *(bp->glx_context)); glPushMatrix (); + glRotatef( current_device_rotation(), 0, 0, 1); gltrackball_rotate (bp->trackball); - win_draw(bp->st); + + stonerview_win_draw(bp->st); if (! bp->button_down_p) - move_increment(bp->st); + stonerview_move_increment(bp->st); glPopMatrix (); mi->polygon_count = NUM_ELS; @@ -133,7 +134,7 @@ release_stonerview (ModeInfo *mi) for (screen = 0; screen < MI_NUM_SCREENS(mi); screen++) { stonerview_configuration *bp = &bps[screen]; if (bp->st) - win_release (bp->st); + stonerview_win_release (bp->st); } free (bps); bps = 0;