0 Members and 1 Guest are viewing this topic.
Awesome Critor! Is it based on Bwang's BMP viewer by the way?
Size: 1.54 MBDimensions: 1024x768
Quote from: DJ Omnimaga on December 12, 2010, 10:56:16 pmAwesome Critor! Is it based on Bwang's BMP viewer by the way?No it is not.(I would first have asked for his permission)The display code is based on the demo that was published on TI-Bank a year ago.I've added some scrolling code and double-buffering.Levak helped me to add zoom in/out code.And BMP support was started from scratch and is designed to be very genericBwang's was only supporting 24-bits if i remember well.Please go on telling me about your good/bad BMP experiences with the viewer.This might be the 1st program I'm going to submit to Ticalc.Thank you all again.
I went for stress-testing, and I got it
Thanks. Also, in your source code, you have browse.c which exposes chooseFile(char*, char*). This returns an int. What is represented by that int?
file = fopen(path, "rb");clrScr();resetConsole();for (i = 0; i < 5; i++){ fread(currentByte, 1, 1, file); dispHex(currentByte);}
Ah, I see. Also, given file and dispHex(char), the following should display the first 5 bytes, correct?Code: [Select]file = fopen(path, "rb");clrScr();resetConsole();for (i = 0; i < 5; i++){ fread(currentByte, 1, 1, file); dispHex(currentByte);}