+
+ for(i=0; trybpp[i]; i++) {
+ if(!(vmem = fbgfx_set_video_mode(xsz, ysz, trybpp[i]))) {
+ continue;
+ }
+ fbgfx_get_video_mode(&xsz, &ysz, &depth);
+ if(depth == trybpp[i]) {
+ break;
+ }
+ fprintf(stderr, "failed to set color depth: %dbpp\n", trybpp[i]);
+ }
+ if(trybpp[i] == 0) {
+ fprintf(stderr, "no usable color depths found\n");