/[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 27 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_vga.c,v 1.99 2006/06/16 18:31:26 debug Exp $   *  $Id: dev_vga.c,v 1.100 2006/07/08 12:30:02 debug Exp $
29   *   *
30   *  VGA charcell and graphics device.   *  VGA charcell and graphics device.
31   *   *
# Line 763  DEVICE_ACCESS(vga) Line 763  DEVICE_ACCESS(vga)
763  static void vga_crtc_reg_write(struct machine *machine, struct vga_data *d,  static void vga_crtc_reg_write(struct machine *machine, struct vga_data *d,
764          int regnr, int idata)          int regnr, int idata)
765  {  {
766          int grayscale;          int i, grayscale;
767    
768          switch (regnr) {          switch (regnr) {
769          case VGA_CRTC_CURSOR_SCANLINE_START:            /*  0x0a  */          case VGA_CRTC_CURSOR_SCANLINE_START:            /*  0x0a  */
# Line 872  static void vga_crtc_reg_write(struct ma Line 872  static void vga_crtc_reg_write(struct ma
872                               d->max_y * d->pixel_repy * 3;                               d->max_y * d->pixel_repy * 3;
873                  }                  }
874    
875                    for (i=0; i<machine->ncpus; i++)
876                            machine->cpus[i]->invalidate_translation_caches(
877                                machine->cpus[i], 0, INVALIDATE_ALL);
878    
879                  if (d->gfx_mem != NULL)                  if (d->gfx_mem != NULL)
880                          free(d->gfx_mem);                          free(d->gfx_mem);
881                  d->gfx_mem_size = 1;                  d->gfx_mem_size = 1;

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26