int MFDisplay_CreateDisplay(int width, int height, int bpp, int rate, bool vsync, bool triplebuffer, bool wide, bool progressive) { MFCALLSTACK; graph_initialize(); graph_set_mode(GRAPH_MODE_PAL, GRAPH_PSM_32, GRAPH_PSM_32); graph_set_displaybuffer(0); graph_set_drawbuffer(0); graph_set_zbuffer(graph_get_size()); return 0; }
int graph_initialize(int fbp, int width, int height, int psm, int x, int y) { int mode = graph_get_region(); // Set a default interlaced video mode with flicker filter. graph_set_mode(GRAPH_MODE_INTERLACED, mode, GRAPH_MODE_FIELD, GRAPH_ENABLE); // Set the screen up graph_set_screen(0,0,width,height); // Set black background graph_set_bgcolor(0,0,0); graph_set_framebuffer_filtered(fbp,width,psm,x,y); graph_enable_output(); // End function. return 0; }