src/mess/video/ti85.c
| r1626 | r1627 | |
| 118 | 118 | ti_screen_y_size = TI81_SCREEN_Y_SIZE; |
| 119 | 119 | ti_number_of_frames = TI81_NUMBER_OF_FRAMES; |
| 120 | 120 | } |
| 121 | | if (!strncmp(machine->gamedrv->name, "ti85", 4)) |
| 121 | else if (!strncmp(machine->gamedrv->name, "ti85", 4)) |
| 122 | 122 | { |
| 123 | 123 | ti_video_memory_size = TI85_VIDEO_MEMORY_SIZE; |
| 124 | 124 | ti_screen_x_size = TI85_SCREEN_X_SIZE; |
| 125 | 125 | ti_screen_y_size = TI85_SCREEN_Y_SIZE; |
| 126 | 126 | ti_number_of_frames = TI85_NUMBER_OF_FRAMES; |
| 127 | 127 | } |
| 128 | | if (!strncmp(machine->gamedrv->name, "ti86", 4)) |
| 128 | else if (!strncmp(machine->gamedrv->name, "ti86", 4)) |
| 129 | 129 | { |
| 130 | 130 | ti_video_memory_size = TI86_VIDEO_MEMORY_SIZE; |
| 131 | 131 | ti_screen_x_size = TI86_SCREEN_X_SIZE; |
| 132 | 132 | ti_screen_y_size = TI86_SCREEN_Y_SIZE; |
| 133 | 133 | ti_number_of_frames = TI86_NUMBER_OF_FRAMES; |
| 134 | 134 | } |
| 135 | else |
| 136 | { |
| 137 | /* don't allocate memory for the others drivers */ |
| 138 | return; |
| 139 | } |
| 135 | 140 | |
| 136 | 141 | ti85_frames = (UINT8 *) auto_malloc(ti_number_of_frames*ti_video_memory_size*sizeof (UINT8)); |
| 137 | 142 | memset (ti85_frames, 0, sizeof(UINT8)*ti_number_of_frames*ti_video_memory_size); |