Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blog:x68_launcher_3 [2020/09/07 11:33] – [bmp.c / bmp.h] johnblog:x68_launcher_3 [2020/09/07 11:51] (current) john
Line 2: Line 2:
  
 ==== bmp.c / bmp.h ==== ==== bmp.c / bmp.h ====
 +
 +   * https://github.com/megatron-uk/x68klauncher/blob/master/src/bmp.c
 +   * https://github.com/megatron-uk/x68klauncher/blob/master/src/bmp.h
  
 The header includes these common files: The header includes these common files:
Line 129: Line 132:
 bmp = (bmpdata_t *) malloc(sizeof(bmpdata_t)); bmp = (bmpdata_t *) malloc(sizeof(bmpdata_t));
 bmp->pixels = NULL; bmp->pixels = NULL;
-status = bmp_ReadImage(f, bmp, 1, 0);+status = bmp_ReadImageHeader(f, bmp);
 if (status != 0){ if (status != 0){
    fclose(f);    fclose(f);
Line 139: Line 142:
 } else ( } else (
   printf("Loading pixel data\n");   printf("Loading pixel data\n");
-  status = bmp_ReadImage(f, bmp, 0, 1);+  status = bmp_ReadImageData(f, bmp);
 ) )
  
 fclose(f); fclose(f);
 </code> </code>
 +
 +----
 +
 +[[blog:x68_launcher_2|<< Back (#2: Filesystem tools, data scraping)]] | [[blog:x68_launcher_4|(#4: Graphics hardware functions) Next >>]]
 +
 +
  • blog/x68_launcher_3.1599474782.txt.gz
  • Last modified: 2020/09/07 11:33
  • by john