summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-27 13:19:13 +0100
committerRay <[email protected]>2020-02-27 13:19:13 +0100
commit245ba2a152c078e1154fb74b2ba224029f2c0a93 (patch)
treeeda25b1ed13ec6097fbf9936768a8657d541a072 /src
parent89ecad1e29c24129ea7de9715afce738a94f9480 (diff)
downloadraylib-245ba2a152c078e1154fb74b2ba224029f2c0a93.tar.gz
raylib-245ba2a152c078e1154fb74b2ba224029f2c0a93.zip
LoadText(): Added comment
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 03aaf625..1b4ef00c 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName)
if (textFile != NULL)
{
+ // WARNING: When reading a file as 'text' file,
+ // text mode causes carriage return-linefeed translation...
+ // ...but using fseek() should return correct byte-offset
fseek(textFile, 0, SEEK_END);
int size = ftell(textFile);
fseek(textFile, 0, SEEK_SET);