Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. diff --git a/minuitwrp/graphics.cpp b/minuitwrp/graphics.cpp
  2. index 47325d0..ed6b3d9 100644
  3. --- a/minuitwrp/graphics.cpp
  4. +++ b/minuitwrp/graphics.cpp
  5. @@ -292,7 +292,7 @@ static void get_memory_surface(GGLSurface* ms) {
  6. ms->format = gr_draw->format;
  7. }
  8.  
  9. -int gr_init(void)
  10. +int gr_init_real(void)
  11. {
  12. gr_draw = NULL;
  13.  
  14. @@ -363,6 +363,25 @@ int gr_init(void)
  15. return 0;
  16. }
  17.  
  18. +/*
  19. + * FIXME: This is a total hack.
  20. + *
  21. + * Round 1
  22. + * framebuffer: fd 4 (480 x 800)
  23. + *
  24. + * Round 2
  25. + * framebuffer: fd 6 (480 x 800)
  26. + *
  27. +*/
  28. +int gr_init(void) {
  29. + int ret;
  30. + // Round 1
  31. + gr_init_real();
  32. + // Return the result of round 2
  33. + ret = gr_init_real();
  34. + return ret;
  35. +}
  36. +
  37. void gr_exit(void)
  38. {
  39. gr_backend->exit(gr_backend);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement