~ubuntu-branches/ubuntu/trusty/vice/trusty-proposed

« back to all changes in this revision

Viewing changes to src/vicii/viciitypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2008-10-16 20:28:53 UTC
  • mfrom: (1.2.1 upstream) (9.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081016202853-vo9c1g9pd15wl7zu
Tags: 1.22.dfsg1-0.1
* NMU to fix release-critical bugs.
* Add data/PRINTER/mps803 to mangle-source.sh check, it's not a multiple of
  2048. Also fix the bashism in the script by replacing $[ ] with $(( )) in
  the calculation part.
* Mangled the source with above fixed script (closes: #442924, #501143)
* do delete -size 6c files and not -empty, they contain "dummy\n"
* Remove README.Debian entry about Xaw3d and Gnome because it's not valid
  anymore (closes: #501135)
* Remove the following Build-Depends as they aren't used because of no xaw3d
  build: xaw3dg-dev, libxaw7-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define VICII_SCREEN_TEXTLINES             25
39
39
#define VICII_SCREEN_CHARHEIGHT            8
40
40
 
41
 
#define VICII_40COL_START_PIXEL 0x20
42
 
#define VICII_40COL_STOP_PIXEL  0x160
43
 
#define VICII_38COL_START_PIXEL 0x27
44
 
#define VICII_38COL_STOP_PIXEL  0x157
 
41
#define VICII_40COL_START_PIXEL vicii.screen_leftborderwidth
 
42
#define VICII_40COL_STOP_PIXEL  (vicii.screen_leftborderwidth + VICII_SCREEN_XPIX)
 
43
#define VICII_38COL_START_PIXEL (vicii.screen_leftborderwidth + 7)
 
44
#define VICII_38COL_STOP_PIXEL  (vicii.screen_leftborderwidth + 311)
45
45
 
46
46
#define VICII_NUM_SPRITES      8
47
47
#define VICII_MAX_SPRITE_WIDTH 56  /* expanded sprite in bug area */
90
90
 
91
91
/* Current horizontal position (in pixels) of the raster.  < 0 or >=
92
92
   SCREEN_WIDTH if outside the visible range.  */
93
 
#define VICII_RASTER_X(cycle)      (((int)(cycle) - 13) * 8)
 
93
#define VICII_RASTER_X(cycle)      (((int)(cycle) - 17) * 8 + vicii.screen_leftborderwidth)
94
94
 
95
95
/* Current vertical position of the raster.  Unlike `rasterline', which is
96
96
   only accurate if a pending drawing event has been served, this is
262
262
    /* Data to display in idle state.  */
263
263
    int idle_data;
264
264
 
265
 
    /* Where do we currently fetch idle stata from?  If `IDLE_NONE', we are
 
265
    /* Where do we currently fetch idle state from?  If `IDLE_NONE', we are
266
266
       not in idle state and thus do not need to update `idle_data'.  */
267
267
    vicii_idle_data_location_t idle_data_location;
268
268
 
308
308
    unsigned int row_24_start_line;
309
309
    unsigned int row_24_stop_line;
310
310
 
311
 
    int screen_borderwidth;
312
 
    int screen_borderheight;
 
311
    int screen_leftborderwidth;
 
312
    int screen_rightborderwidth;
313
313
    int cycles_per_line;
314
314
    int draw_cycle;
315
315
    int sprite_fetch_cycle;
318
318
    unsigned int first_dma_line;
319
319
    unsigned int last_dma_line;
320
320
 
321
 
    /* Number of lines the whole screen is shifted up.  */
322
 
    int offset;
323
 
    
324
321
    /* Flag backgroundcolor in hires mode or extended text mode.  */
325
322
    int get_background_from_vbuf;
326
323
 
341
338
    /* VIC-IIe clock mode.  */
342
339
    unsigned int fastmode;
343
340
 
 
341
    /* C128 2mhz cycle counter */
 
342
    int half_cycles;
 
343
 
344
344
    /* Last value read from VICII (used for RMW access).  */
345
345
    BYTE last_read;
346
346