Changeset 162:e023fb0f4382
- Timestamp:
- 08/23/2008 12:33:59 PM
(5 months ago)
- Author:
- marc@e0.local
- branch:
- default
- Message:
possible fix for OverlayCanvas? trouble in #96
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r68 |
r162 |
|
| 205 | 205 | LateExecutingDrawing later = new LateExecutingDrawing(); |
|---|
| 206 | 206 | |
|---|
| | 207 | private iLinearGraphicsContext wasContext; |
|---|
| | 208 | |
|---|
| 207 | 209 | public void submitLine(CachedLine line, Dict properties) { |
|---|
| 208 | 210 | |
|---|
| … | … | |
| 241 | 243 | public void windowDisplayEnter() { |
|---|
| 242 | 244 | |
|---|
| | 245 | wasContext = GLComponentWindow.currentContext; |
|---|
| 243 | 246 | if (insideWindow) |
|---|
| 244 | 247 | GLComponentWindow.currentContext = this; |
|---|
| … | … | |
| 289 | 292 | for (Pair<CachedLine, Dict> p : needingCreating) { |
|---|
| 290 | 293 | later.prepLine(p.left, p.right); |
|---|
| 291 | | |
|---|
| | 294 | |
|---|
| 292 | 295 | InternalLine line = create(p); |
|---|
| 293 | 296 | if (line != null) |
|---|
| … | … | |
| 295 | 298 | } |
|---|
| 296 | 299 | for (Map.Entry<CachedLine, InternalLine> il : cache.entrySet()) { |
|---|
| 297 | | |
|---|
| | 300 | |
|---|
| 298 | 301 | il.getValue().outputTo_list.open(); |
|---|
| 299 | 302 | } |
|---|
| … | … | |
| 327 | 330 | |
|---|
| 328 | 331 | endQueue.update(); |
|---|
| | 332 | |
|---|
| | 333 | if (insideWindow) |
|---|
| | 334 | GLComponentWindow.currentContext = wasContext; |
|---|
| | 335 | else |
|---|
| | 336 | GLComponentWindow.fastContext = wasContext; |
|---|
| 329 | 337 | |
|---|
| 330 | 338 | } |
|---|