summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2008-08-29 21:54:23 +0200
committerPatrice Mandin <pmandin@caramail.com>2008-08-29 21:54:23 +0200
commit2642880e56020309be88ad23dd7f187cec3343cb (patch)
treef2fa8fa10467e6c7af527c800de3f8d6678f0c6a
parentb7f375bb7aa0eefb51d7265716cbd80c8101b206 (diff)
reuse imageblit and cliprect
-rw-r--r--imageblit.c8
-rw-r--r--main.c4
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();
}
diff --git a/main.c b/main.c
index 06c4379..adcee02 100644
--- a/main.c
+++ b/main.c
@@ -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,