Skip to content
  • deuce's avatar
    Add new functions: · c4053695
    deuce authored
    struct ciolib_pixels *getpixels(sx, sy, ex, ey)
    Returns and allocated array of pixels suitable for use by setpixels()
    Must be freed using freepixels()
    
    freepixles(struct ciolib_pixels *)
    Frees a struct ciolib_pixels returned by getpixels()
    
    setpixels(sx, sy, ex, ey, x_off, y_off, pixels)
    Draws the pixels on the screen. x/y_off are an offset in the pixel array
    
    struct ciolib_screen *savescreen()
    Saves the entire current screen state.
    
    freescreen(a)
    Frees a value returned by savescreen()
    
    restorescreen(a)
    Restores the entire screen state
    
    This allows SyncTERM to not crap all over Sixel graphics.
    c4053695