mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[kandinsky] const-correctness
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user