From 2642880e56020309be88ad23dd7f187cec3343cb Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Fri, 29 Aug 2008 21:54:23 +0200 Subject: reuse imageblit and cliprect --- imageblit.c | 8 ++++---- 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(); } 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, -- cgit v1.2.3