equal
deleted
inserted
replaced
80 doc_view.rich_text_area.robust_body(()) { |
80 doc_view.rich_text_area.robust_body(()) { |
81 JEdit_Lib.buffer_lock(buffer) { |
81 JEdit_Lib.buffer_lock(buffer) { |
82 val rendering = doc_view.get_rendering() |
82 val rendering = doc_view.get_rendering() |
83 val overview = get_overview() |
83 val overview = get_overview() |
84 |
84 |
85 if (!rendering.snapshot.is_outdated && overview == current_overview) { |
85 if (rendering.snapshot.is_outdated || overview != current_overview) { |
|
86 invoke() |
|
87 |
|
88 gfx.setColor(rendering.outdated_color) |
|
89 gfx.asInstanceOf[Graphics2D].fill(gfx.getClipBounds) |
|
90 } |
|
91 else { |
86 gfx.setColor(getBackground) |
92 gfx.setColor(getBackground) |
87 gfx.asInstanceOf[Graphics2D].fill(gfx.getClipBounds) |
93 gfx.asInstanceOf[Graphics2D].fill(gfx.getClipBounds) |
88 for ((color, h, h1) <- current_colors) { |
94 for ((color, h, h1) <- current_colors) { |
89 gfx.setColor(color) |
95 gfx.setColor(color) |
90 gfx.fillRect(0, h, getWidth, h1 - h) |
96 gfx.fillRect(0, h, getWidth, h1 - h) |
91 } |
97 } |
92 } |
|
93 else { |
|
94 gfx.setColor(rendering.outdated_color) |
|
95 gfx.asInstanceOf[Graphics2D].fill(gfx.getClipBounds) |
|
96 } |
98 } |
97 } |
99 } |
98 } |
100 } |
99 } |
101 } |
100 |
102 |