diff options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/gl/gl-main.c | 2 | ||||
-rw-r--r-- | platform/java/mupdf_native.c | 80 | ||||
-rw-r--r-- | platform/x11/pdfapp.c | 18 |
3 files changed, 50 insertions, 50 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index 5b26a48f..5c42c482 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -257,7 +257,7 @@ void render_page(void) transform_page(); - pix = fz_new_pixmap_from_page(ctx, fzpage, &draw_page_ctm, fz_device_rgb(ctx), 0); + pix = fz_new_pixmap_from_page(ctx, fzpage, draw_page_ctm, fz_device_rgb(ctx), 0); if (currentinvert) { fz_invert_pixmap(ctx, pix); diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 928732e5..51c305ed 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -1188,13 +1188,13 @@ static inline jobject to_Image(fz_context *ctx, JNIEnv *env, fz_image *img) return jimg; } -static inline jobject to_Matrix(fz_context *ctx, JNIEnv *env, const fz_matrix *mat) +static inline jobject to_Matrix(fz_context *ctx, JNIEnv *env, fz_matrix mat) { jobject jctm; if (!ctx) return NULL; - jctm = (*env)->NewObject(env, cls_Matrix, mid_Matrix_init, mat->a, mat->b, mat->c, mat->d, mat->e, mat->f); + jctm = (*env)->NewObject(env, cls_Matrix, mid_Matrix_init, mat.a, mat.b, mat.c, mat.d, mat.e, mat.f); if ((*env)->ExceptionCheck(env)) fz_throw_java(ctx, env); @@ -2237,7 +2237,7 @@ typedef struct fz_java_device; static void -fz_java_device_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, const fz_matrix *ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) +fz_java_device_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, fz_matrix ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2253,7 +2253,7 @@ fz_java_device_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, i } static void -fz_java_device_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *state, const fz_matrix *ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) +fz_java_device_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *state, fz_matrix ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2270,7 +2270,7 @@ fz_java_device_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, } static void -fz_java_device_clip_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, const fz_matrix *ctm, const fz_rect *scissor) +fz_java_device_clip_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, fz_matrix ctm, const fz_rect *scissor) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2283,7 +2283,7 @@ fz_java_device_clip_path(fz_context *ctx, fz_device *dev, const fz_path *path, i } static void -fz_java_device_clip_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *state, const fz_matrix *ctm, const fz_rect *scissor) +fz_java_device_clip_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *state, fz_matrix ctm, const fz_rect *scissor) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2297,7 +2297,7 @@ fz_java_device_clip_stroke_path(fz_context *ctx, fz_device *dev, const fz_path * } static void -fz_java_device_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) +fz_java_device_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2313,7 +2313,7 @@ fz_java_device_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, c } static void -fz_java_device_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *state, const fz_matrix *ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) +fz_java_device_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *state, fz_matrix ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2330,7 +2330,7 @@ fz_java_device_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, } static void -fz_java_device_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, const fz_rect *scissor) +fz_java_device_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm, const fz_rect *scissor) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2343,7 +2343,7 @@ fz_java_device_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, c } static void -fz_java_device_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *state, const fz_matrix *ctm, const fz_rect *scissor) +fz_java_device_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *state, fz_matrix ctm, const fz_rect *scissor) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2357,7 +2357,7 @@ fz_java_device_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text * } static void -fz_java_device_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm) +fz_java_device_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, fz_matrix ctm) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2370,7 +2370,7 @@ fz_java_device_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, } static void -fz_java_device_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shd, const fz_matrix *ctm, float alpha, const fz_color_params *color_params) +fz_java_device_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shd, fz_matrix ctm, float alpha, const fz_color_params *color_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2383,7 +2383,7 @@ fz_java_device_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shd, const } static void -fz_java_device_fill_image(fz_context *ctx, fz_device *dev, fz_image *img, const fz_matrix *ctm, float alpha, const fz_color_params *color_params) +fz_java_device_fill_image(fz_context *ctx, fz_device *dev, fz_image *img, fz_matrix ctm, float alpha, const fz_color_params *color_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2396,7 +2396,7 @@ fz_java_device_fill_image(fz_context *ctx, fz_device *dev, fz_image *img, const } static void -fz_java_device_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, const fz_matrix *ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) +fz_java_device_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, fz_matrix ctm, fz_colorspace *cs, const float *color, float alpha, const fz_color_params *cs_params) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2412,7 +2412,7 @@ fz_java_device_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, c } static void -fz_java_device_clip_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, const fz_matrix *ctm, const fz_rect *scissor) +fz_java_device_clip_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, fz_matrix ctm, const fz_rect *scissor) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2511,7 +2511,7 @@ fz_java_device_end_group(fz_context *ctx, fz_device *dev) } static int -fz_java_device_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rect *view, float xstep, float ystep, const fz_matrix *ctm, int id) +fz_java_device_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rect *view, float xstep, float ystep, fz_matrix ctm, int id) { fz_java_device *jdev = (fz_java_device *)dev; JNIEnv *env = jdev->env; @@ -2754,7 +2754,7 @@ FUN(NativeDevice_fillPath)(JNIEnv *env, jobject self, jobject jpath, jboolean ev if (err) return; fz_try(ctx) - fz_fill_path(ctx, dev, path, even_odd, &ctm, cs, color, alpha, &cp); + fz_fill_path(ctx, dev, path, even_odd, ctm, cs, color, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2784,7 +2784,7 @@ FUN(NativeDevice_strokePath)(JNIEnv *env, jobject self, jobject jpath, jobject j if (err) return; fz_try(ctx) - fz_stroke_path(ctx, dev, path, stroke, &ctm, cs, color, alpha, &cp); + fz_stroke_path(ctx, dev, path, stroke, ctm, cs, color, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2808,7 +2808,7 @@ FUN(NativeDevice_clipPath)(JNIEnv *env, jobject self, jobject jpath, jboolean ev if (err) return; fz_try(ctx) - fz_clip_path(ctx, dev, path, even_odd, &ctm, NULL); + fz_clip_path(ctx, dev, path, even_odd, ctm, NULL); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2834,7 +2834,7 @@ FUN(NativeDevice_clipStrokePath)(JNIEnv *env, jobject self, jobject jpath, jobje if (err) return; fz_try(ctx) - fz_clip_stroke_path(ctx, dev, path, stroke, &ctm, NULL); + fz_clip_stroke_path(ctx, dev, path, stroke, ctm, NULL); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2862,7 +2862,7 @@ FUN(NativeDevice_fillText)(JNIEnv *env, jobject self, jobject jtext, jobject jct if (err) return; fz_try(ctx) - fz_fill_text(ctx, dev, text, &ctm, cs, color, alpha, &cp); + fz_fill_text(ctx, dev, text, ctm, cs, color, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2892,7 +2892,7 @@ FUN(NativeDevice_strokeText)(JNIEnv *env, jobject self, jobject jtext, jobject j if (err) return; fz_try(ctx) - fz_stroke_text(ctx, dev, text, stroke, &ctm, cs, color, alpha, &cp); + fz_stroke_text(ctx, dev, text, stroke, ctm, cs, color, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2916,7 +2916,7 @@ FUN(NativeDevice_clipText)(JNIEnv *env, jobject self, jobject jtext, jobject jct if (err) return; fz_try(ctx) - fz_clip_text(ctx, dev, text, &ctm, NULL); + fz_clip_text(ctx, dev, text, ctm, NULL); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2942,7 +2942,7 @@ FUN(NativeDevice_clipStrokeText)(JNIEnv *env, jobject self, jobject jtext, jobje if (err) return; fz_try(ctx) - fz_clip_stroke_text(ctx, dev, text, stroke, &ctm, NULL); + fz_clip_stroke_text(ctx, dev, text, stroke, ctm, NULL); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2966,7 +2966,7 @@ FUN(NativeDevice_ignoreText)(JNIEnv *env, jobject self, jobject jtext, jobject j if (err) return; fz_try(ctx) - fz_ignore_text(ctx, dev, text, &ctm); + fz_ignore_text(ctx, dev, text, ctm); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -2991,7 +2991,7 @@ FUN(NativeDevice_fillShade)(JNIEnv *env, jobject self, jobject jshd, jobject jct if (err) return; fz_try(ctx) - fz_fill_shade(ctx, dev, shd, &ctm, alpha, &cp); + fz_fill_shade(ctx, dev, shd, ctm, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -3016,7 +3016,7 @@ FUN(NativeDevice_fillImage)(JNIEnv *env, jobject self, jobject jimg, jobject jct if (err) return; fz_try(ctx) - fz_fill_image(ctx, dev, img, &ctm, alpha, &cp); + fz_fill_image(ctx, dev, img, ctm, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -3044,7 +3044,7 @@ FUN(NativeDevice_fillImageMask)(JNIEnv *env, jobject self, jobject jimg, jobject if (err) return; fz_try(ctx) - fz_fill_image_mask(ctx, dev, img, &ctm, cs, color, alpha, &cp); + fz_fill_image_mask(ctx, dev, img, ctm, cs, color, alpha, &cp); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -3068,7 +3068,7 @@ FUN(NativeDevice_clipImageMask)(JNIEnv *env, jobject self, jobject jimg, jobject if (err) return; fz_try(ctx) - fz_clip_image_mask(ctx, dev, img, &ctm, NULL); + fz_clip_image_mask(ctx, dev, img, ctm, NULL); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -3257,7 +3257,7 @@ FUN(NativeDevice_beginTile)(JNIEnv *env, jobject self, jobject jarea, jobject jv if (err) return 0; fz_try(ctx) - i = fz_begin_tile_id(ctx, dev, &area, &view, xstep, ystep, &ctm, id); + i = fz_begin_tile_id(ctx, dev, &area, &view, xstep, ystep, ctm, id); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -3301,7 +3301,7 @@ FUN(DrawDevice_newNative)(JNIEnv *env, jclass self, jobject jpixmap) if (!pixmap) { jni_throw_arg(env, "pixmap must not be null"); return 0; } fz_try(ctx) - device = fz_new_draw_device(ctx, NULL, pixmap); + device = fz_new_draw_device(ctx, fz_identity, pixmap); fz_catch(ctx) { jni_rethrow(env, ctx); @@ -4468,7 +4468,7 @@ FUN(Text_showString)(JNIEnv *env, jobject self, jobject jfont, jobject jtrm, jst if (!str) return; fz_try(ctx) - fz_show_string(ctx, text, font, &trm, str, wmode, 0, FZ_BIDI_NEUTRAL, FZ_LANG_UNSET); + trm = fz_show_string(ctx, text, font, trm, str, wmode, 0, FZ_BIDI_NEUTRAL, FZ_LANG_UNSET); fz_always(ctx) (*env)->ReleaseStringUTFChars(env, jstr, str); fz_catch(ctx) @@ -4715,7 +4715,7 @@ FUN(Annotation_run)(JNIEnv *env, jobject self, jobject jdev, jobject jctm, jobje if (err) return; fz_try(ctx) - fz_run_annot(ctx, annot, dev, &ctm, cookie); + fz_run_annot(ctx, annot, dev, ctm, cookie); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -4753,7 +4753,7 @@ FUN(Annotation_toPixmap)(JNIEnv *env, jobject self, jobject jctm, jobject jcs, j if (!ctx || !annot) return NULL; fz_try(ctx) - pixmap = fz_new_pixmap_from_annot(ctx, annot, &ctm, cs, alpha); + pixmap = fz_new_pixmap_from_annot(ctx, annot, ctm, cs, alpha); fz_catch(ctx) { jni_rethrow(env, ctx); @@ -5366,7 +5366,7 @@ FUN(Page_toPixmap)(JNIEnv *env, jobject self, jobject jctm, jobject jcs, jboolea if (!ctx || !page) return NULL; fz_try(ctx) - pixmap = fz_new_pixmap_from_page(ctx, page, &ctm, cs, alpha); + pixmap = fz_new_pixmap_from_page(ctx, page, ctm, cs, alpha); fz_catch(ctx) { jni_rethrow(env, ctx); @@ -5414,7 +5414,7 @@ FUN(Page_run)(JNIEnv *env, jobject self, jobject jdev, jobject jctm, jobject jco if (err) return; fz_try(ctx) - fz_run_page(ctx, page, dev, &ctm, cookie); + fz_run_page(ctx, page, dev, ctm, cookie); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -5439,7 +5439,7 @@ FUN(Page_runPageContents)(JNIEnv *env, jobject self, jobject jdev, jobject jctm, if (err) return; fz_try(ctx) - fz_run_page_contents(ctx, page, dev, &ctm, cookie); + fz_run_page_contents(ctx, page, dev, ctm, cookie); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -5695,7 +5695,7 @@ FUN(Page_textAsHtml)(JNIEnv *env, jobject self) ctm = fz_identity; text = fz_new_stext_page(ctx, fz_bound_page(ctx, page)); dev = fz_new_stext_device(ctx, text, NULL); - fz_run_page(ctx, page, dev, &ctm, NULL); + fz_run_page(ctx, page, dev, ctm, NULL); fz_close_device(ctx, dev); buf = fz_new_buffer(ctx, 256); @@ -5823,7 +5823,7 @@ FUN(DisplayList_run)(JNIEnv *env, jobject self, jobject jdev, jobject jctm, jobj if (err) return; fz_try(ctx) - fz_run_display_list(ctx, list, dev, &ctm, rect, cookie); + fz_run_display_list(ctx, list, dev, ctm, rect, cookie); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) @@ -5853,7 +5853,7 @@ FUN(DisplayList_toPixmap)(JNIEnv *env, jobject self, jobject jctm, jobject jcs, if (!ctx || !list) return NULL; fz_try(ctx) - pixmap = fz_new_pixmap_from_display_list(ctx, list, &ctm, cs, alpha); + pixmap = fz_new_pixmap_from_display_list(ctx, list, ctm, cs, alpha); fz_catch(ctx) { jni_rethrow(env, ctx); diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 20f4cc46..81e73051 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -690,14 +690,14 @@ static void pdfapp_loadpage(pdfapp_t *app, int no_cache) if (no_cache) fz_enable_device_hints(app->ctx, mdev, FZ_NO_CACHE); cookie.incomplete_ok = 1; - fz_run_page_contents(app->ctx, app->page, mdev, &fz_identity, &cookie); + fz_run_page_contents(app->ctx, app->page, mdev, fz_identity, &cookie); fz_close_device(app->ctx, mdev); fz_drop_device(app->ctx, mdev); mdev = NULL; app->annotations_list = fz_new_display_list(app->ctx, fz_infinite_rect); mdev = fz_new_list_device(app->ctx, app->annotations_list); for (annot = fz_first_annot(app->ctx, app->page); annot; annot = fz_next_annot(app->ctx, annot)) - fz_run_annot(app->ctx, annot, mdev, &fz_identity, &cookie); + fz_run_annot(app->ctx, annot, mdev, fz_identity, &cookie); if (cookie.incomplete) { app->incomplete = 1; @@ -758,7 +758,7 @@ static void pdfapp_recreate_annotationslist(pdfapp_t *app) app->annotations_list = fz_new_display_list(app->ctx, fz_infinite_rect); mdev = fz_new_list_device(app->ctx, app->annotations_list); for (annot = fz_first_annot(app->ctx, app->page); annot; annot = fz_next_annot(app->ctx, annot)) - fz_run_annot(app->ctx, annot, mdev, &fz_identity, &cookie); + fz_run_annot(app->ctx, annot, mdev, fz_identity, &cookie); if (cookie.incomplete) { app->incomplete = 1; @@ -784,7 +784,7 @@ static void pdfapp_recreate_annotationslist(pdfapp_t *app) app->errored = errored; } -static void pdfapp_runpage(pdfapp_t *app, fz_device *dev, const fz_matrix *ctm, const fz_rect *rect, fz_cookie *cookie) +static void pdfapp_runpage(pdfapp_t *app, fz_device *dev, const fz_matrix ctm, const fz_rect *rect, fz_cookie *cookie) { if (app->page_list) fz_run_display_list(app->ctx, app->page_list, dev, ctm, rect, cookie); @@ -815,10 +815,10 @@ static void pdfapp_updatepage(pdfapp_t *app) ibounds = fz_round_rect(bounds); bounds = fz_rect_from_irect(ibounds); fz_clear_pixmap_rect_with_value(app->ctx, app->image, 255, ibounds); - idev = fz_new_draw_device_with_bbox(app->ctx, NULL, app->image, &ibounds); + idev = fz_new_draw_device_with_bbox(app->ctx, fz_identity, app->image, &ibounds); fz_try(app->ctx) { - pdfapp_runpage(app, idev, &ctm, &bounds, NULL); + pdfapp_runpage(app, idev, ctm, &bounds, NULL); fz_close_device(app->ctx, idev); } fz_always(app->ctx) @@ -885,7 +885,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai tdev = fz_new_stext_device(app->ctx, app->page_text, NULL); fz_try(app->ctx) { - pdfapp_runpage(app, tdev, &fz_identity, &fz_infinite_rect, &cookie); + pdfapp_runpage(app, tdev, fz_identity, &fz_infinite_rect, &cookie); fz_close_device(app->ctx, tdev); } fz_always(app->ctx) @@ -935,8 +935,8 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai fz_clear_pixmap_with_value(app->ctx, app->image, 255); if (app->page_list || app->annotations_list) { - idev = fz_new_draw_device(app->ctx, NULL, app->image); - pdfapp_runpage(app, idev, &ctm, &bounds, &cookie); + idev = fz_new_draw_device(app->ctx, fz_identity, app->image); + pdfapp_runpage(app, idev, ctm, &bounds, &cookie); fz_close_device(app->ctx, idev); } if (app->invert) |