0 Members and 1 Guest are viewing this topic.
Here are some planned features (in no particular order):Proper error handling (using MuPDF's C exception handling system)ZoomingA menuAllowing the holding down of arrow keysFindRotate pageSome convenient keyboard shortcuts (with help)Select/copy/paste text (using the Nspire clipboard, i think nTxt has such a feature)Feel free to post additional suggestions here.
However, I noticed, you're using nspire-ld for linking, which outputs ELF files and the attached binary is a bFLT file
Cool to have you back Legimet ! Nice update too, never tried either version but I definitely should.
Quote from: Vogtinator on July 03, 2014, 05:52:12 amHowever, I noticed, you're using nspire-ld for linking, which outputs ELF files and the attached binary is a bFLT file I'm using an old commit of your Ndless fork.
Use Fabian Vogt's fork of Ndless, commit ac7576f9cc2609789178270d86778a8e45b64464.
Do you think I should use Zehn by concatenating to the resources-loader?
And can you add memory.h? It should just #include string.h.
void fillScreen(unsigned char c) { for (int i = 0; i < SCREEN_WIDTH; i++) { for (int j = 0; j < SCREEN_WIDTH; j++) { setPixel(c, i, j); } } } void fillScreen(unsigned char r, unsigned char g, unsigned char b) { for (int i = 0; i < SCREEN_WIDTH; i++) { for (int j = 0; j < SCREEN_WIDTH; j++) { setPixel(r, g, b, i, j); } } }
void setPixel(unsigned char c, int x, int y) { // On color models, each pixel is represented in 16-bit high color // On classic models, each pixel is 4 bits grayscale, 0 is black and 15 is white if (0 <= x && x < SCREEN_WIDTH && 0 <= y && y < SCREEN_HEIGHT) { int pos = y * SCREEN_WIDTH + x;
bool init() { buf[0] = new unsigned char[SCREEN_BYTES_SIZE]; buf[1] = origBuf; if (buf[0]) { if (std::atexit(deinit)) { deinit(); return false; } else { atexitCalled = true; return true; } } else { return false; } }