SVG backing is now a C++ object.
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
CI / ubuntu-latest-html-tests (push) Has been cancelled
CI / ubuntu-latest-no-tls (push) Has been cancelled
CI / ubuntu-latest-mbedtls2 (push) Has been cancelled
CI / ubuntu-latest-openssl-3 (push) Has been cancelled
CI / ubuntu-latest-with-old-std (push) Has been cancelled
CI / ubuntu-20-04-openssl-1-1 (push) Has been cancelled
CI / alpine-mbedtls-3_6_0 (push) Has been cancelled
CI / macOS-13-openssl-1-1 (push) Has been cancelled
CI / macOS-13-openssl-3 (push) Has been cancelled
CI / freebsd-14-openssl-3 (push) Has been cancelled
CI / windows-mbedtls (push) Has been cancelled
This commit is contained in:
+4
-4
@@ -30,13 +30,13 @@
|
||||
#define NANOSVGRAST_IMPLEMENTATION
|
||||
#include "nanosvgrast.h"
|
||||
|
||||
typedef struct {
|
||||
struct DilloSvg {
|
||||
DilloImage *Image; /* Image meta data */
|
||||
DilloUrl *url; /* Primary Key for the dicache */
|
||||
int version; /* Secondary Key for the dicache */
|
||||
int bgcolor; /* Parent widget background color */
|
||||
int fgcolor; /* Parent widget foreground color */
|
||||
} DilloSvg;
|
||||
};
|
||||
|
||||
/*
|
||||
* Free up the resources for this image.
|
||||
@@ -45,7 +45,7 @@ static void Svg_free(DilloSvg *svg)
|
||||
{
|
||||
_MSG("Svg_free: svg=%p\n", svg);
|
||||
|
||||
dFree(svg);
|
||||
delete svg;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -153,7 +153,7 @@ extern "C" void a_Svg_callback(int Op, CacheClient_t *data)
|
||||
*/
|
||||
void *a_Svg_new(DilloImage *Image, DilloUrl *url, int version)
|
||||
{
|
||||
DilloSvg *svg = dNew0(DilloSvg, 1);
|
||||
DilloSvg *svg = std::make_unique< DilloSvg >().release();
|
||||
_MSG("a_Svg_new: svg=%p\n", svg);
|
||||
|
||||
svg->Image = Image;
|
||||
|
||||
Reference in New Issue
Block a user