teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

文の変更

2020/09/15 02:36

投稿

txty
txty

スコア304

title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,8 @@
8
8
  // Load Texture
9
9
  const char *PATH=&filename[0];
10
10
 
11
- FILE* fb=fopen(PATH,"r");
11
+ FILE* fb=fopen(PATH,"rb"); //間違えてないか自身で判断ください。責任は負
12
+ //いかねます
12
13
 
13
14
  fseek(fb,0L,SEEK_SET);
14
15
  unsigned long file1 = ftell(fb);

2

文の改善

2020/09/15 02:36

投稿

txty
txty

スコア304

title CHANGED
File without changes
body CHANGED
@@ -29,7 +29,8 @@
29
29
  unsigned char MappingData[filesize-54]; //786486-54
30
30
 
31
31
 
32
- for(unsigned int i=0;i< (filesize-54) ;++i)
32
+ for(unsigned int i=0;i< (filesize-54) ;++i) //間違えてないか自身で判断ください。責任は負
33
+ //いかねます
33
34
 
34
35
  { MappingData[i]=image[(filesize)-i];
35
36
  }

1

文の改善

2020/07/22 23:14

投稿

txty
txty

スコア304

title CHANGED
File without changes
body CHANGED
@@ -29,7 +29,7 @@
29
29
  unsigned char MappingData[filesize-54]; //786486-54
30
30
 
31
31
 
32
- for(unsigned int i=0;i< (filesize-54)+1 ;++i)
32
+ for(unsigned int i=0;i< (filesize-54) ;++i)
33
33
 
34
34
  { MappingData[i]=image[(filesize)-i];
35
35
  }