[sd;2] fix 49G ON button offset

This commit is contained in:
Gwenhael Le Moine 2024-10-02 18:35:48 +02:00
parent 970274cefc
commit ab4a4a0ea9
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@ static void ExecBUSCB( void )
static void ExecBUSCC( void )
{
debug1( DEBUG_C_TRACE, CPU_I_CALLED, "ExecBUSCC" );
// 49g bugs here
// 49g bugs here
ChfCondition CPU_F_INTERR, CHF_WARNING, "BUSCC" ChfEnd;
ChfSignal();
}

View file

@ -619,7 +619,7 @@ static SDL_Texture* create_button_texture( int hpkey, bool is_up )
__draw_pixel( 1, BUTTONS[ hpkey ].h - 2, FRAME );
// bottom-right
__draw_pixel( BUTTONS[ hpkey ].w - 2, BUTTONS[ hpkey ].h - 2, FRAME );
if ( hpkey == HP48_KEY_ON ) {
if ( ( config.model == MODEL_49G && hpkey == HP49_KEY_ON) || hpkey == HP48_KEY_ON ) {
// top
__draw_line( 2, 1, BUTTONS[ hpkey ].w - 3, 1, FRAME );
// top-left