Changeset 56746cf in buchla-emu for emu/ser.c


Ignore:
Timestamp:
01/05/2018 01:39:08 PM (6 years ago)
Author:
Alexander Heinrich <alex.heinrich@…>
Branches:
master
Children:
379ffd9
Parents:
3231e25 (diff), 49efb91 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into mida

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/ser.c

    r3231e25 r56746cf  
    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#elif defined EMU_OS_X
     35#define MOU_DIV 1
     36#else
     37#define MOU_DIV 4
     38#endif
    3139
    3240#define CON_W 80
     
    335343                mou_dx, mou_dy, mou_l ? 'l' : '-', mou_r ? 'r' : '-');
    336344
    337         int32_t dx = mou_dx;
    338         int32_t dy = mou_dy;
     345        int32_t dx = mou_dx / MOU_DIV;
     346        int32_t dy = mou_dy / MOU_DIV;
    339347
    340348        if (dx < -128) {
Note: See TracChangeset for help on using the changeset viewer.