Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/minuitwrp/graphics.cpp b/minuitwrp/graphics.cpp
- index 47325d0..ed6b3d9 100644
- --- a/minuitwrp/graphics.cpp
- +++ b/minuitwrp/graphics.cpp
- @@ -292,7 +292,7 @@ static void get_memory_surface(GGLSurface* ms) {
- ms->format = gr_draw->format;
- }
- -int gr_init(void)
- +int gr_init_real(void)
- {
- gr_draw = NULL;
- @@ -363,6 +363,25 @@ int gr_init(void)
- return 0;
- }
- +/*
- + * FIXME: This is a total hack.
- + *
- + * Round 1
- + * framebuffer: fd 4 (480 x 800)
- + *
- + * Round 2
- + * framebuffer: fd 6 (480 x 800)
- + *
- +*/
- +int gr_init(void) {
- + int ret;
- + // Round 1
- + gr_init_real();
- + // Return the result of round 2
- + ret = gr_init_real();
- + return ret;
- +}
- +
- void gr_exit(void)
- {
- gr_backend->exit(gr_backend);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement