Changeset 88

Show
Ignore:
Timestamp:
10/16/07 00:17:53 (1 year ago)
Author:
baxissimo
Message:

GLviewer: fixed my misconception about SDL events
MeshDrawerT: added flush before log file read.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/OpenMeshD/OpenMesh/Apps/GLViewer/GLViewer.d

    r75 r88  
    296296 
    297297            case SDL_MOUSEBUTTONDOWN: 
    298                 if (event.button.button == SDL_BUTTON_WHEELDOWN) { 
     298                if (event.button.button == SDL_BUTTON_WHEELDOWN) 
     299                { 
    299300                    g_app.mouse_wheel(event.button); 
    300                 } else { 
     301                }  
     302                else if (event.button.button == SDL_BUTTON_WHEELUP) { 
     303                    g_app.mouse_wheel(event.button); 
     304                } 
     305                else { 
    301306                    g_app.mouse_down(event.button); 
    302307                } 
     
    306311                break; 
    307312            case SDL_MOUSEBUTTONUP: 
    308                 if (event.button.button == SDL_BUTTON_WHEELUP) { 
    309                     g_app.mouse_wheel(event.button); 
    310                 } else { 
    311                     g_app.mouse_up(event.button); 
    312                 } 
     313                g_app.mouse_up(event.button); 
    313314                break; 
    314315 
  • trunk/OpenMeshD/OpenMesh/Apps/GLViewer/MeshDrawerT.d

    r81 r88  
    7575        mesh_.request_vertex_texcoords2D(); 
    7676   
    77         dout.writefln("Loading from file '" , _filename, "'")
     77        dout.writefln("Loading from file '" , _filename, "'...").flush
    7878        if ( MeshIO.read_mesh(mesh_, _filename, _opt )) 
    7979        {