int is_running_in_strip() { // uses a hack to detect if we're running from an eActivity strip: // if the first pixel of the VRAM (first pixel of the status bar) is not white, then we are in a strip // (eActivity turns the statusbar background into a checkerbox when in a strip, // unless our code messes with the statusbar flags, which this add-in doesn't do. // the first pixel of the checkerboard is not white) DisplayStatusArea(); // otherwise, we don't know if(Bdisp_GetPoint_VRAM( 0, 0 ) != COLOR_WHITE) return 1; else return 0; }
char getPixel(int x, int y) { return (char)Bdisp_GetPoint_VRAM(x, y); }