Changeset 1553
- Timestamp:
- 05/06/21 15:21:45 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameGraphics.java
r1415 r1553 52 52 53 53 private static Item _lastToolTippedItem = null; 54 55 private static HashSet<Item> itemsPaintedRecently = new HashSet<Item>(); 54 56 55 57 /** Static-only class. */ … … 107 109 108 110 /** TODO: Comment. cts16 */ 109 public static void paintFrame(Frame toPaint, boolean isActualFrame, boolean createVolitile) 110 { 111 public static void paintFrame(Frame toPaint, boolean isActualFrame, boolean createVolitile) { 112 113 Browser.debugMessage("FrameGraphics", "paintFrame", "Debug Job: Trying to detect Items being painted multiple times"); 114 itemsPaintedRecently = new HashSet<Item>(); 115 116 111 117 Clip clip = EcosystemManager.getGraphicsManager().peekClip(); 112 118 … … 458 464 459 465 // do not paint annotation items in audience mode 460 if (!DisplayController.isAudienceMode() || (!i.isConnectedToAnnotation() && !i.isAnnotation()) || i == FrameUtils.getLastEdited()) 461 { 466 if (!DisplayController.isAudienceMode() || (!i.isConnectedToAnnotation() && !i.isAnnotation()) || i == FrameUtils.getLastEdited()) { 462 467 i.paint(); 468 469 if (itemsPaintedRecently.contains(i)) { 470 Browser.debugMessage("FrameGraphics", "PaintItem", "Repaining Item Between Clears: " + i); 471 } else { 472 itemsPaintedRecently.add(i); 473 } 463 474 } 464 475 }
Note:
See TracChangeset
for help on using the changeset viewer.