~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/video/holeland.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        int attr = colorram[tile_index];
24
24
        int tile_number = videoram[tile_index] | ((attr & 0x03) << 8);
25
25
 
26
 
/*if (input_code_pressed(KEYCODE_Q) && (attr & 0x10)) tile_number = rand(); */
27
 
/*if (input_code_pressed(KEYCODE_W) && (attr & 0x20)) tile_number = rand(); */
28
 
/*if (input_code_pressed(KEYCODE_E) && (attr & 0x40)) tile_number = rand(); */
29
 
/*if (input_code_pressed(KEYCODE_R) && (attr & 0x80)) tile_number = rand(); */
 
26
/*if (input_code_pressed(machine, KEYCODE_Q) && (attr & 0x10)) tile_number = rand(); */
 
27
/*if (input_code_pressed(machine, KEYCODE_W) && (attr & 0x20)) tile_number = rand(); */
 
28
/*if (input_code_pressed(machine, KEYCODE_E) && (attr & 0x40)) tile_number = rand(); */
 
29
/*if (input_code_pressed(machine, KEYCODE_R) && (attr & 0x80)) tile_number = rand(); */
30
30
        SET_TILE_INFO(
31
31
                        0,
32
32
                        tile_number,
86
86
        {
87
87
                po[offset] = data & 1;
88
88
                palette_offset = (po[0] + (po[1] << 1)) << 4;
89
 
                tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
 
89
                tilemap_mark_all_tiles_dirty_all(space->machine);
90
90
        }
91
91
}
92
92
 
132
132
                        sy = 240 - sy;
133
133
                }
134
134
 
135
 
                drawgfx(bitmap,machine->gfx[1],
 
135
                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
136
136
                                code,
137
137
                                color,
138
138
                                flipx,flipy,
139
 
                                2*sx,2*sy,
140
 
                                cliprect,TRANSPARENCY_PEN,0);
 
139
                                2*sx,2*sy,0);
141
140
        }
142
141
}
143
142
 
170
169
                        sy = 240 - sy;
171
170
                }
172
171
 
173
 
                drawgfx(bitmap,machine->gfx[1],
 
172
                drawgfx_transpen(bitmap,cliprect,machine->gfx[1],
174
173
                                code,
175
174
                                color,
176
175
                                flipx,flipy,
177
 
                                sx,sy,
178
 
                                cliprect,TRANSPARENCY_PEN,0);
 
176
                                sx,sy,0);
179
177
        }
180
178
}
181
179