@@ -76,7 +76,8 @@ public GamelogicEngineLamp[] AvailableLamps {
76
76
private Dictionary < int , GamelogicEngineCoil > _coils = new Dictionary < int , GamelogicEngineCoil > ( ) ;
77
77
private Dictionary < int , GamelogicEngineLamp > _lamps = new Dictionary < int , GamelogicEngineLamp > ( ) ;
78
78
79
- private const string DisplayPrefix = "display" ;
79
+ private const string DmdPrefix = "dmd" ;
80
+ private const string SegDispPrefix = "display" ;
80
81
81
82
private bool _isRunning ;
82
83
private HashSet < int > _displayAnnounced = new HashSet < int > ( ) ;
@@ -167,7 +168,7 @@ private void UpdateDmd(int index, PinMameDisplayLayout displayLayout, IntPtr fra
167
168
lock ( _dispatchQueue ) {
168
169
_dispatchQueue . Enqueue ( ( ) =>
169
170
OnDisplaysAvailable ? . Invoke ( this , new AvailableDisplays (
170
- new DisplayConfig ( $ "{ DisplayPrefix } { index } ", displayLayout . width , displayLayout . height ) ) ) ) ;
171
+ new DisplayConfig ( $ "{ DmdPrefix } { index } ", displayLayout . width , displayLayout . height ) ) ) ) ;
171
172
}
172
173
173
174
_displayAnnounced . Add ( index ) ;
@@ -187,7 +188,7 @@ private void UpdateDmd(int index, PinMameDisplayLayout displayLayout, IntPtr fra
187
188
188
189
lock ( _dispatchQueue ) {
189
190
_dispatchQueue . Enqueue ( ( ) => OnDisplayFrame ? . Invoke ( this ,
190
- new DisplayFrameData ( $ "{ DisplayPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
191
+ new DisplayFrameData ( $ "{ DmdPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
191
192
}
192
193
}
193
194
@@ -197,20 +198,20 @@ private void UpdateSegDisp(int index, PinMameDisplayLayout displayLayout, IntPtr
197
198
lock ( _dispatchQueue ) {
198
199
_dispatchQueue . Enqueue ( ( ) =>
199
200
OnDisplaysAvailable ? . Invoke ( this , new AvailableDisplays (
200
- new DisplayConfig ( $ "{ DisplayPrefix } { index } ", displayLayout . length , 1 ) ) ) ) ;
201
+ new DisplayConfig ( $ "{ SegDispPrefix } { index } ", displayLayout . length , 1 ) ) ) ) ;
201
202
}
202
203
203
204
_displayAnnounced . Add ( index ) ;
204
205
_frameBuffer [ index ] = new byte [ displayLayout . length * 2 ] ;
205
- Logger . Info ( $ "[PinMAME] Display { DisplayPrefix } { index } is of type { displayLayout . type } at { displayLayout . length } wide.") ;
206
+ Logger . Info ( $ "[PinMAME] Display { SegDispPrefix } { index } is of type { displayLayout . type } at { displayLayout . length } wide.") ;
206
207
}
207
208
208
209
Marshal . Copy ( framePtr , _frameBuffer [ index ] , 0 , displayLayout . length * 2 ) ;
209
210
210
211
lock ( _dispatchQueue ) {
211
212
//Logger.Info($"[PinMAME] Seg data ({index}): {BitConverter.ToString(_frameBuffer[index])}" );
212
213
_dispatchQueue . Enqueue ( ( ) => OnDisplayFrame ? . Invoke ( this ,
213
- new DisplayFrameData ( $ "{ DisplayPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
214
+ new DisplayFrameData ( $ "{ SegDispPrefix } { index } ", GetDisplayType ( displayLayout . type ) , _frameBuffer [ index ] ) ) ) ;
214
215
}
215
216
216
217
}
0 commit comments