/[gxemul]/trunk/src/devices/dev_vga.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_vga.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_vga.c,v 1.95 2006/01/01 13:17:18 debug Exp $   *  $Id: dev_vga.c,v 1.99 2006/06/16 18:31:26 debug Exp $
29   *   *
30   *  VGA charcell and graphics device.   *  VGA charcell and graphics device.
31   *   *
# Line 467  static void vga_update_text(struct machi Line 467  static void vga_update_text(struct machi
467                                          continue;                                          continue;
468                                  dev_fb_access(machine->cpus[0],                                  dev_fb_access(machine->cpus[0],
469                                      machine->memory, addr, rgb_line,                                      machine->memory, addr, rgb_line,
470                                      3 * font_width, MEM_WRITE, d->fb);                                      3 * machine->x11_scaleup * font_width,
471                                        MEM_WRITE, d->fb);
472                          }                          }
473                  }                  }
474          }          }
# Line 520  void dev_vga_tick(struct cpu *cpu, void Line 521  void dev_vga_tick(struct cpu *cpu, void
521                  int base = ((d->crtc_reg[VGA_CRTC_START_ADDR_HIGH] << 8)                  int base = ((d->crtc_reg[VGA_CRTC_START_ADDR_HIGH] << 8)
522                      + d->crtc_reg[VGA_CRTC_START_ADDR_LOW]) * 2;                      + d->crtc_reg[VGA_CRTC_START_ADDR_LOW]) * 2;
523                  int new_u_y1, new_u_y2;                  int new_u_y1, new_u_y2;
524                  debug("[ dev_vga_tick: dyntrans access, %llx .. %llx ]\n",                  debug("[ dev_vga_tick: dyntrans access, %"PRIx64" .. %"
525                      (long long)low, (long long)high);                      PRIx64" ]\n", (uint64_t) low, (uint64_t) high);
526                  low -= base;                  low -= base;
527                  high -= base;                  high -= base;
528                  d->update_x1 = 0;                  d->update_x1 = 0;
# Line 1217  void dev_vga_init(struct machine *machin Line 1218  void dev_vga_init(struct machine *machin
1218          d->gfx_mem_size   = 1;  /*  Nothing, as we start in text mode  */          d->gfx_mem_size   = 1;  /*  Nothing, as we start in text mode  */
1219          d->pixel_repx = d->pixel_repy = machine->x11_scaleup;          d->pixel_repx = d->pixel_repy = machine->x11_scaleup;
1220    
1221          /*  Allocate in full pages, to make it possible to use bintrans:  */          /*  Allocate in full pages, to make it possible to use dyntrans:  */
1222          allocsize = ((d->charcells_size-1) | (machine->arch_pagesize-1)) + 1;          allocsize = ((d->charcells_size-1) | (machine->arch_pagesize-1)) + 1;
1223          d->charcells = malloc(d->charcells_size);          d->charcells = malloc(d->charcells_size);
1224          d->charcells_outputed = malloc(d->charcells_size);          d->charcells_outputed = malloc(d->charcells_size);
# Line 1275  void dev_vga_init(struct machine *machin Line 1276  void dev_vga_init(struct machine *machin
1276          d->update_y2 = d->max_y - 1;          d->update_y2 = d->max_y - 1;
1277          d->modified = 1;          d->modified = 1;
1278    
1279          machine_add_tickfunction(machine, dev_vga_tick, d, VGA_TICK_SHIFT);          machine_add_tickfunction(machine, dev_vga_tick, d,
1280                VGA_TICK_SHIFT, 0.0);
1281    
1282          register_reset(d);          register_reset(d);
1283    

Legend:
Removed from v.22  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26