Changeset a2b296e in buchla-emu


Ignore:
Timestamp:
12/31/2017 05:14:32 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
f0af168
Parents:
9b204fa
Message:

Smaller LCD and console windows. Mouse scaling.

Location:
emu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emu/lcd.c

    r9b204fa ra2b296e  
    2424int32_t lcd_verbose = 0;
    2525
    26 #define WIN_W (1615 * 2 / 3)
    27 #define WIN_H (304 * 2 / 3)
     26#define WIN_W (1615 / 2)
     27#define WIN_H (304 / 2)
    2828
    2929#define GFX_BGR 0x00000000
  • emu/ser.c

    r9b204fa ra2b296e  
    2424int32_t ser_verbose = 0;
    2525
    26 #define WIN_W (1520 * 2 / 3)
    27 #define WIN_H (950 * 2 / 3)
     26#define WIN_W (1520 / 2)
     27#define WIN_H (950 / 2)
    2828
    2929#define BEL_CYC 10000
    3030#define MOU_CYC 10000
     31
     32#if defined EMU_WIN
     33#define MOU_DIV 64
     34#else
     35#define MOU_DIV 4
     36#endif
    3137
    3238#define CON_W 80
     
    335341                mou_dx, mou_dy, mou_l ? 'l' : '-', mou_r ? 'r' : '-');
    336342
    337         int32_t dx = mou_dx;
    338         int32_t dy = mou_dy;
     343        int32_t dx = mou_dx / MOU_DIV;
     344        int32_t dy = mou_dy / MOU_DIV;
    339345
    340346        if (dx < -128) {
Note: See TracChangeset for help on using the changeset viewer.