chasing #12
This commit is contained in:
parent
aeea54e59b
commit
eed26cded9
2 changed files with 4 additions and 5 deletions
|
@ -273,6 +273,8 @@ void do_shutdown( void ) {
|
|||
if ( got_alarm ) {
|
||||
got_alarm = 0;
|
||||
|
||||
ui_update_LCD();
|
||||
|
||||
ticks = get_t1_t2();
|
||||
if ( saturn.t2_ctrl & 0x01 )
|
||||
saturn.timer2 = ticks.t2_ticks;
|
||||
|
|
|
@ -3731,7 +3731,7 @@ void CreateDispWindow( void ) {
|
|||
CompletionType = XShmGetEventBase( dpy ) + ShmCompletion;
|
||||
}
|
||||
|
||||
shm_error:
|
||||
shm_error:
|
||||
XSetErrorHandler( NULL );
|
||||
XFlush( dpy );
|
||||
|
||||
|
@ -4689,17 +4689,14 @@ static inline void draw_nibble( int c, int r, int val ) {
|
|||
int x, y;
|
||||
|
||||
x = ( c * 8 ) + 5;
|
||||
|
||||
if ( r <= display.lines )
|
||||
x -= disp.offset;
|
||||
y = ( r * 2 ) + 20;
|
||||
|
||||
val &= 0x0f;
|
||||
if ( val != lcd_buffer[ r ][ c ] ) {
|
||||
lcd_buffer[ r ][ c ] = val;
|
||||
|
||||
XCopyPlane( dpy, nibble_maps[ val ], disp.win, disp.gc, 0, 0, 8, 2, x,
|
||||
y, 1 );
|
||||
lcd_buffer[ r ][ c ] = val;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue