diff options
author | Patrice Mandin <pmandin@caramail.com> | 2008-08-29 21:54:23 +0200 |
---|---|---|
committer | Patrice Mandin <pmandin@caramail.com> | 2008-08-29 21:54:23 +0200 |
commit | 2642880e56020309be88ad23dd7f187cec3343cb (patch) | |
tree | f2fa8fa10467e6c7af527c800de3f8d6678f0c6a | |
parent | b7f375bb7aa0eefb51d7265716cbd80c8101b206 (diff) |
reuse imageblit and cliprect
-rw-r--r-- | imageblit.c | 8 | ||||
-rw-r--r-- | main.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/imageblit.c b/imageblit.c index e83e43e..8537d8a 100644 --- a/imageblit.c +++ b/imageblit.c @@ -16,12 +16,12 @@ void imageblit_init(void) BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_SURFACE, 1); OUT_RING(NvCtxSurf2D); - /*BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_CLIP_RECTANGLE, 1); - OUT_RING(NvClipRect);*/ + BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_CLIP_RECTANGLE, 1); + OUT_RING(NvClipRect); BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_PATTERN, 1); OUT_RING(NvImagePattern); - /*BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_ROP, 1); - OUT_RING(NvRasterOp);*/ + BEGIN_RING(NvSubImageBlit, NV04_IMAGE_BLIT_ROP, 1); + OUT_RING(NvRasterOp); FIRE_RING(); } @@ -37,8 +37,8 @@ int main(int argc, char **argv) context_surface_2d_init(); image_pattern_init(); - /*clip_rectangle_init(); - raster_op_init();*/ + clip_rectangle_init(); + raster_op_init(); imageblit_init(); imageblit_copy(viewport_x,viewport_y, |