]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug 53/head
authorj-p <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:23:06 +0000 (17:23 +0100)
committerj-p <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:23:06 +0000 (17:23 +0100)
include/vkvg-nsvg.h
include/vkvg.h
src/vectors.h
src/vkvg_surface.c
vkh

index 3e1044ae7e4e2184a5a5d7d46c4aa4bef6a33ad5..acf49699e2f1e21dd5b416c76b8fcd20ee413e33 100644 (file)
 extern "C" {
 #endif
 
-#ifndef vkvg_public
-# if defined (_MSC_VER) && ! defined (VKVG_STATIC_BUILD)
-#  define vkvg_public __declspec(dllimport)
-# else
-#  define vkvg_public
-# endif
-#endif
-
 /*! @defgroup nsvg Nano SVG
  * @brief Render SVG drawings
  *
index fbd78f58a997e7a95314541c0adf13cdc1ed4a50..c3d1ca77b8075174a7f0b448661102e288e03921 100644 (file)
@@ -67,10 +67,14 @@ extern "C" {
 #include <stdbool.h>
 
 #ifndef vkvg_public
-       #if (defined(_WIN32) || defined(_WIN64)) && !defined (VKVG_STATIC_BUILD)
-               #define vkvg_public __declspec(dllimport)
+       #ifndef VKVG_STATIC_BUILD
+               #if (defined(_WIN32) || defined(_WIN64))
+                       #define vkvg_public __declspec(dllimport)
+               #else
+                       #define vkvg_public __attribute__((visibility("default")))
+               #endif
        #else
-               #define vkvg_public __attribute__((visibility("default")))
+               #define vkvg_public 
        #endif
 #endif
 
index 3a0425554f262e4c8cdbcf37d67544a4fbd9feba..6a29965dc1e24678ac530082f669a83036486a79 100644 (file)
 #define VKVG_VECTORS_H
 
 #include "vkvg_internal.h"
-#include <immintrin.h>
 
-typedef union {
-       float v2si __attribute__ ((vector_size (8)));
-       struct {
+typedef struct {
                float x;
                float y;
-       };
 }vec2;
 
 typedef struct {
index 34a89b83163a7e75939e99cb2433774c925f8fa6..f8db9bf555a03206b481a1f37032285c68adb900 100644 (file)
@@ -317,8 +317,8 @@ void vkvg_surface_write_to_memory (VkvgSurface surf, unsigned char* const bitmap
        uint64_t stride = vkh_image_get_stride(stagImg);
        uint32_t dest_stride = surf->width * 4;
 
-       void* img = vkh_image_map (stagImg);
-       void* row = bitmap;
+       char* img = vkh_image_map (stagImg);
+       char* row = bitmap;
        for (uint32_t y = 0; y < surf->height; y++) {
                memcpy(row, img, dest_stride);
                row += dest_stride;
diff --git a/vkh b/vkh
index dde09d88d7c6554b39d46bccaf8b392e2a42d937..ffa9619b5368639c1c765152509d5c7e97876c63 160000 (submodule)
--- a/vkh
+++ b/vkh
@@ -1 +1 @@
-Subproject commit dde09d88d7c6554b39d46bccaf8b392e2a42d937
+Subproject commit ffa9619b5368639c1c765152509d5c7e97876c63