This commit is contained in:
Gwenhael Le Moine 2023-09-19 09:48:25 +02:00
parent aeea54e59b
commit eed26cded9
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 4 additions and 5 deletions

View file

@ -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;

View file

@ -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;
}
}