From b244a8914597e5f2b881dd93b717bf3140cdd7eb Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 27 Jul 2016 11:35:07 +0000 Subject: [PATCH] adapted to new nanovg API FossilOrigin-Name: 0451bf65174603a366811d4e7b1a4be225bb464da719d16821a0e5d0cd5d472c --- xreaderfmt.d | 2 +- xreaderui.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xreaderfmt.d b/xreaderfmt.d index 79a4bde..720341d 100644 --- a/xreaderfmt.d +++ b/xreaderfmt.d @@ -113,7 +113,7 @@ class BookImage : LayObject { vg.save(); scope(exit) vg.restore(); vg.beginPath(); - int iid = vg.createImageFromMemoryImage(img, NVGImageFlags.None); //vg.createImageRGBA(img.width, img.height, NVGImageFlags.None, img.imageData.bytes[]); + int iid = vg.createImageFromMemoryImage(img); //vg.createImageRGBA(img.width, img.height, img.imageData.bytes[], NVGImageFlags.None); if (iid < 0) { writeln("WTF?!"); iid = -666; return; } nvgImageIds ~= iid; vg.fillPaint(vg.imagePattern(x, y, img.width, img.height, 0, iid)); diff --git a/xreaderui.d b/xreaderui.d index a482ff5..62cceb1 100644 --- a/xreaderui.d +++ b/xreaderui.d @@ -110,7 +110,7 @@ int createCursorImage (NVGContext vg) { *d++ = c.b; *d++ = c.a; } - return vg.createImageRGBA(curWidth, curHeight, NVGImageFlags.None, img[]); + return vg.createImageRGBA(curWidth, curHeight, img[]); } -- 2.11.4.GIT