From 0a68188adbafdf9fd6597d1aafebda19e5c7ff6b Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 7 Sep 2007 21:36:33 +0000 Subject: [PATCH] a few comments and dead code removal --- plugin/devil/gvdevice_devil.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/plugin/devil/gvdevice_devil.c b/plugin/devil/gvdevice_devil.c index 1f8cfc85d..46b2a4eeb 100644 --- a/plugin/devil/gvdevice_devil.c +++ b/plugin/devil/gvdevice_devil.c @@ -60,8 +60,10 @@ static void devil_format(GVJ_t * job) // Bind this image name. ilBindImage(ImgId); + // cairo's inmemory image format needs inverting for DevIL Y_inv ( job->width, job->height, job->imagedata ); + // let the DevIL do its thing rc = ilTexImage( job->width, job->height, 1, // Depth 4, // Bpp @@ -69,16 +71,10 @@ static void devil_format(GVJ_t * job) IL_UNSIGNED_BYTE,// Type job->imagedata); -#if 1 + // output to the provided open file handle ilSaveF(job->device.id, job->output_file); -#endif - -#if 0 - ilEnable(IL_FILE_OVERWRITE); - ilSaveImage("test-devil.bmp"); -#endif - // We're done with the image, so let's delete it. + // We're done with the image, so delete it. ilDeleteImages(1, &ImgId); // Simple Error detection loop that displays the Error to the user in a human-readable form. -- 2.40.0