Changeset 1501


Ignore:
Timestamp:
Jun 10, 2009 8:39:50 AM (15 years ago)
Author:
gah
Message:

Flip image along y-axis for movie

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/FlowCmd.cpp

    r1499 r1501  
    19461946    }
    19471947#endif
    1948     NanoVis::licRenderer->make_patterns();
    1949 
    19501948    // FIXME: find a way to get the data from the movie object as a void*
    19511949    Rappture::Buffer data;
     
    19551953        return TCL_ERROR;
    19561954    }
     1955
    19571956    // Build the command string for the client.
    19581957    char command[200];
    19591958    sprintf(command,"nv>image -bytes %lu -type movie -token \"%s\"\n",
    19601959            (unsigned long)data.size(), Tcl_GetString(objv[7]));
    1961 
    19621960    NanoVis::sendDataToClient(command, data.bytes(), data.size());
     1961
     1962    if ((width != oldWidth) || (height != oldHeight)) {
     1963        // Restore to the old size.
     1964        NanoVis::resize_offscreen_buffer(old_width, old_height);
     1965    }
     1966    NanoVis::licRenderer->make_patterns();
    19631967    if (unlink(fileName) != 0) {
    19641968        Tcl_AppendResult(interp, "can't unlink temporary movie file \"",
Note: See TracChangeset for help on using the changeset viewer.