summaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2019-04-06 14:38:52 +0200
committerj-p <jp_bruyere@hotmail.com>2019-04-06 14:40:34 +0200
commit5dd9a920c6bf69a4d6a8a764bf65ba200aa44908 (patch)
tree3580866e356d8e07016f1ae583e4dcfa827ef240 /src
parentfcdc88ab27a0b1a5095e08ee23e0021077250223 (diff)
vkvg_device_create samplecount=1 by default
Diffstat (limited to 'src')
-rw-r--r--src/vkvg_context.c4
-rw-r--r--src/vkvg_device.c2
-rw-r--r--src/vkvg_pattern.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/vkvg_context.c b/src/vkvg_context.c
index aa2b5f4..28ab113 100644
--- a/src/vkvg_context.c
+++ b/src/vkvg_context.c
@@ -711,8 +711,8 @@ void vkvg_text_run_destroy (VkvgText textRun) {
void vkvg_show_text_run (VkvgContext ctx, VkvgText textRun) {
_show_text_run(ctx, textRun);
}
-vkvg_text_extents_t* vkvg_text_run_get_extents (VkvgText textRun) {
- return &textRun->extents;
+void vkvg_text_run_get_extents (VkvgText textRun, vkvg_text_extents_t* extents) {
+ extents = &textRun->extents;
}
void vkvg_text_extents (VkvgContext ctx, const char* text, vkvg_text_extents_t* extents) {
diff --git a/src/vkvg_device.c b/src/vkvg_device.c
index 3d22fbf..a390dac 100644
--- a/src/vkvg_device.c
+++ b/src/vkvg_device.c
@@ -35,7 +35,7 @@
*/
VkvgDevice vkvg_device_create(VkInstance inst, VkPhysicalDevice phy, VkDevice vkdev, uint32_t qFamIdx, uint32_t qIndex)
{
- return vkvg_device_create_multisample (inst,phy,vkdev,qFamIdx,qIndex, VK_SAMPLE_COUNT_4_BIT, false);
+ return vkvg_device_create_multisample (inst,phy,vkdev,qFamIdx,qIndex, VK_SAMPLE_COUNT_1_BIT, false);
}
/**
* @brief Create VkvgDevice with default multisampling configuration
diff --git a/src/vkvg_pattern.c b/src/vkvg_pattern.c
index a7126d1..5fb23a9 100644
--- a/src/vkvg_pattern.c
+++ b/src/vkvg_pattern.c
@@ -138,6 +138,9 @@ vkvg_extend_t vkvg_pattern_get_extend (VkvgPattern pat){
vkvg_filter_t vkvg_pattern_get_filter (VkvgPattern pat){
return pat->filter;
}
+vkvg_pattern_type_t vkvg_pattern_get_type (VkvgPattern pat){
+ return pat->type;
+}
void vkvg_pattern_destroy(VkvgPattern pat)
{