equal
deleted
inserted
replaced
92 protected Vector tmpDisplayables; //temporary Vector of created Displayables |
92 protected Vector tmpDisplayables; //temporary Vector of created Displayables |
93 protected boolean activated = false; //events are dispatched only if Toolkit is active, see Toolkit.start() |
93 protected boolean activated = false; //events are dispatched only if Toolkit is active, see Toolkit.start() |
94 |
94 |
95 // NGA specific change |
95 // NGA specific change |
96 private int iFlags = FLAG_NONE; |
96 private int iFlags = FLAG_NONE; |
97 |
97 |
98 // Splash screen specific |
|
99 private boolean iFirstPaint = true; |
|
100 |
|
101 // |
98 // |
102 // Event source : must keep in sync with TSourceType in lcdui.h |
99 // Event source : must keep in sync with TSourceType in lcdui.h |
103 // |
100 // |
104 private static final int ITEM = 3; |
101 private static final int ITEM = 3; |
105 private static final int DISPLAYABLE = 4; |
102 private static final int DISPLAYABLE = 4; |
146 private static final int SYNC_RECT = 1; |
143 private static final int SYNC_RECT = 1; |
147 |
144 |
148 // NGA specific change. |
145 // NGA specific change. |
149 // Op code indicating M3G content start |
146 // Op code indicating M3G content start |
150 private static final int M3G_CONTENT_START = 2; |
147 private static final int M3G_CONTENT_START = 2; |
151 |
148 |
152 // Splash screen specific. |
|
153 private static final int SYNC_FIRST_PAINT = 3; |
|
154 |
|
155 Toolkit(ToolkitInvoker aInvoker) |
149 Toolkit(ToolkitInvoker aInvoker) |
156 { |
150 { |
157 iInvoker = aInvoker; |
151 iInvoker = aInvoker; |
158 tmpDisplayables = new Vector(); |
152 tmpDisplayables = new Vector(); |
159 |
153 |
664 { |
658 { |
665 final int x2=aX+aW; |
659 final int x2=aX+aW; |
666 final int y2=aY+aH; |
660 final int y2=aY+aH; |
667 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
661 iBuffer.write(aDrawable, SYNC_RECT, aX, aY, x2, y2); |
668 iBuffer.sync(); |
662 iBuffer.sync(); |
669 |
|
670 if (iFirstPaint) |
|
671 { |
|
672 iFirstPaint = false; |
|
673 iBuffer.write(aDrawable, SYNC_FIRST_PAINT); |
|
674 iBuffer.sync(); |
|
675 } |
|
676 } |
663 } |
677 } |
664 } |
678 |
665 |
679 /** |
666 /** |
680 JSR 135 Support |
667 JSR 135 Support |