summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/vega/api_text.c
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-04-19 20:16:07 +0800
committerChia-I Wu <olv@lunarg.com>2010-12-01 11:23:51 +0800
commit56f02cedfaca9755d2855ec3fe075ccfe5e85c0a (patch)
tree32a7d754509b4f5c8b5c8a5982e8e71750f90c1a /src/gallium/state_trackers/vega/api_text.c
parent20ce148c305200c760f34d2098d92bc77cb6deee (diff)
st/vega: Update to latest headers.
Diffstat (limited to 'src/gallium/state_trackers/vega/api_text.c')
-rw-r--r--src/gallium/state_trackers/vega/api_text.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/vega/api_text.c b/src/gallium/state_trackers/vega/api_text.c
index 2a62da0a1d..d8264f7c96 100644
--- a/src/gallium/state_trackers/vega/api_text.c
+++ b/src/gallium/state_trackers/vega/api_text.c
@@ -27,6 +27,7 @@
#include "VG/openvg.h"
#include "vg_context.h"
+#include "api.h"
#include "util/u_memory.h"
@@ -73,8 +74,8 @@ void vegaSetGlyphToPath(VGFont font,
VGuint glyphIndex,
VGPath path,
VGboolean isHinted,
- VGfloat glyphOrigin [2],
- VGfloat escapement[2])
+ const VGfloat glyphOrigin[2],
+ const VGfloat escapement[2])
{
struct vg_context *ctx = vg_current_context();
struct vg_object *pathObj;
@@ -109,8 +110,8 @@ void vegaSetGlyphToPath(VGFont font,
void vegaSetGlyphToImage(VGFont font,
VGuint glyphIndex,
VGImage image,
- VGfloat glyphOrigin [2],
- VGfloat escapement[2])
+ const VGfloat glyphOrigin[2],
+ const VGfloat escapement[2])
{
struct vg_context *ctx = vg_current_context();
struct vg_object *img_obj;
@@ -213,9 +214,9 @@ void vegaDrawGlyph(VGFont font,
void vegaDrawGlyphs(VGFont font,
VGint glyphCount,
- VGuint *glyphIndices,
- VGfloat *adjustments_x,
- VGfloat *adjustments_y,
+ const VGuint *glyphIndices,
+ const VGfloat *adjustments_x,
+ const VGfloat *adjustments_y,
VGbitfield paintModes,
VGboolean allowAutoHinting)
{