From 3ed151bf90abe8bf2ba94307ae45e5d7cf1630aa Mon Sep 17 00:00:00 2001 From: robnee Date: Sat, 3 Apr 2021 15:11:10 -0400 Subject: [PATCH] Skip image rendering in CLI rather than hard abort --- src/render/render2d.cpp | 4 ++-- test/request/image/linked.png | Bin 0 -> 4309 bytes test/request/image/normal.png | Bin 0 -> 4292 bytes test/request/image/test.cpp | 5 ++--- 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 test/request/image/linked.png create mode 100644 test/request/image/normal.png diff --git a/src/render/render2d.cpp b/src/render/render2d.cpp index 710e795d..fd948e80 100644 --- a/src/render/render2d.cpp +++ b/src/render/render2d.cpp @@ -190,11 +190,11 @@ void SurfaceRenderer::DrawFaces(const SMesh &m, const std::vector &fac void SurfaceRenderer::DrawPixmap(std::shared_ptr pm, const Vector &o, const Vector &u, const Vector &v, const Point2d &ta, const Point2d &tb, hFill hcf) { - ssassert(false, "Not implemented"); + dbp("Not implemented"); } void SurfaceRenderer::InvalidatePixmap(std::shared_ptr pm) { - ssassert(false, "Not implemented"); + dbp("Not implemented"); } //----------------------------------------------------------------------------- diff --git a/test/request/image/linked.png b/test/request/image/linked.png new file mode 100644 index 0000000000000000000000000000000000000000..8667e34140ad2c7704ef6f2ca9b11630c3c03765 GIT binary patch literal 4309 zcmeHLYgAKL7CyNoyg~p)5tWCP7K@;UY72u|ez$gevgg_yHfDn|5AmX!t ziYQP?1p+uFyd>n(DolAfj3qq85C;`VgrJZ>AVM$JHJ!{Pv!*{fYu1|n$hvpspt!){%7eqnz0td;BGljCG+c0fc;DUDfZZLY%s}j`at^|oLh*_dE(Du@i4jY9-sjP>;_}&>%_9)FP zGr+Gj7GxIxGZ?kX&`#J!*=}KW-JB<0A%?6-pTjH)QaQ%@xkM6l-m(g9a8y zlw}6n@!0Via7aehYDE-pv#a;hAV9HD3gcpJ{3AhnbA&k1kZLBD_ls{Af$A>_GYSCGK7bD_FTvZ={D0`h0p?;ncjf=y!!iXKJ49 zOoy&Sthx|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gGYOuYaOurwu9%MG@@9&=7w3FOgXQ|$>Bmn!hDnDPxi5ZMa+&ML{ zC4Xhvo5LryJj#a~%-*r)lhbgaZQ%$d&AiU~4;&b^u4rk%aaOIQ`=m%m3FFF}hIDuvvJyttm{#N0X4?YHHaSIomjOul z5{KOyOTq*)`qCiN6aIEcD=P+w#Mk2;RdG^OkjXv2vWX))rEq| zIX2IwUbe5ME*OXG)CA2=ewaY{d0J~h6pUK{)w$~Iu1o$k0Anj=87Ac5HL5)t?yB2Q z<5OW^$cbll$Ivz1QiV&iF2?i~j@fF*Cmv$%*!+YD$U%-Vn12mztIW~|MOV1nwtiv* zet-u^oHx=@?GIOjW=lHi-r{IYM>Q{w%rApvSMLiAeGbF8b?6x)9W{rVWO7Va)t%_% zFaZo{ zF3s*_@9h#1pULMt@>>+o8V_LqO|Y%!*A&zAmX{UMSn=Z(8Z+r>LKC&bV-uw-ET#0 z1i=pJR}?jGy<|y+q~mm@L|7{Hn0q8j7O}!+{3x;BHDccQG0A{5TKvR_{Bannreai{ z=RHS~J{m71nk17<`UXYBo}_ww3tpOZHLXZWkn76i&t~plr6o!Pttrn26PZ1+yg2B~ zi4JQY42rIer#MHZPcl3ffJd1F9sT&$hj?+r3w;w!kZKm;y=pYQI)TqTT$fABBQp)oqVe|HnQ2(k}z4w}G2`H!6l10sWl-dv~FHD|cct{{u|mo}2&x literal 0 HcmV?d00001 diff --git a/test/request/image/test.cpp b/test/request/image/test.cpp index da0954e0..a9507bee 100644 --- a/test/request/image/test.cpp +++ b/test/request/image/test.cpp @@ -2,13 +2,12 @@ TEST_CASE(normal_roundtrip) { CHECK_LOAD("normal.slvs"); - // Can't render images through cairo for now. - // CHECK_RENDER("normal.png"); + CHECK_RENDER("normal.png"); CHECK_SAVE("normal.slvs"); } TEST_CASE(linked_roundtrip) { CHECK_LOAD("linked.slvs"); - // CHECK_RENDER("linked.png"); + CHECK_RENDER("linked.png"); CHECK_SAVE("linked.slvs"); }