Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. Index: D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/m_menu.c
  2. ===================================================================
  3. --- D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/m_menu.c (revision 3361)
  4. +++ D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/m_menu.c (revision 3362)
  5. @@ -141,6 +141,8 @@
  6.  
  7. dboolean inhelpscreens; // indicates we are in or just left a help screen
  8.  
  9. +dboolean BorderNeedRefresh;
  10. +
  11. dboolean menuactive; // The menus are up
  12.  
  13. #define SKULLXOFF -32
  14. @@ -5604,6 +5606,8 @@
  15. print_warning_about_changes = 0; // killough 8/15/98
  16. default_verify = 0; // killough 10/98
  17.  
  18. + BorderNeedRefresh = true;
  19. +
  20. // if (!netgame && usergame && paused)
  21. // sendpause = true;
  22. }
  23. @@ -5615,6 +5619,8 @@
  24. {
  25. currentMenu = menudef;
  26. itemOn = currentMenu->lastOn;
  27. +
  28. + BorderNeedRefresh = true;
  29. }
  30.  
  31. /////////////////////////////
  32. Index: D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/d_main.c
  33. ===================================================================
  34. --- D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/d_main.c (revision 3361)
  35. +++ D:/andre/prg/doom/prboom-plus/branches/prboom-plus-24/src/d_main.c (revision 3362)
  36. @@ -117,6 +117,7 @@
  37.  
  38. //jff 4/18/98
  39. extern dboolean inhelpscreens;
  40. +extern dboolean BorderNeedRefresh;
  41.  
  42. skill_t startskill;
  43. int startepisode;
  44. @@ -355,7 +356,8 @@
  45. if (automapmode & am_active)
  46. AM_Drawer();
  47.  
  48. - ST_Drawer((viewheight != SCREENHEIGHT) || ((automapmode & am_active) && !(automapmode & am_overlay)), redrawborderstuff);
  49. + ST_Drawer((viewheight != SCREENHEIGHT) || ((automapmode & am_active) && !(automapmode & am_overlay)), redrawborderstuff || BorderNeedRefresh);
  50. + BorderNeedRefresh = false;
  51. if (V_GetMode() != VID_MODEGL)
  52. R_DrawViewBorder();
  53. HU_Drawer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement