[kandinsky] const-correctness

This commit is contained in:
Romain Goyet
2015-09-21 10:38:26 +02:00
parent 435410b18b
commit a3f5b5644a
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
#include <kandinsky/types.h>
void KDDrawChar(char character, KDPoint p);
void KDDrawString(char * text, KDPoint p);
void KDDrawString(const char * text, KDPoint p);
KDSize KDStringSize(char * text);
#endif

View File

@@ -11,7 +11,7 @@ void KDDrawChar(char character, KDPoint p) {
}
}
void KDDrawString(char * text, KDPoint p) {
void KDDrawString(const char * text, KDPoint p) {
char * charPointer = text;
KDPoint position = p;
while(*charPointer != 0) {