瀏覽代碼

LoadText(): Added comment

Ray 5 年之前
父節點
當前提交
245ba2a152
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/rlgl.h

+ 3 - 0
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);