119 |
|
mode.depth = VDEPTH_8BIT; |
120 |
|
break; |
121 |
|
case 15: |
122 |
– |
mode.depth = VDEPTH_16BIT; |
123 |
– |
break; |
122 |
|
case 16: |
123 |
|
mode.depth = VDEPTH_16BIT; |
124 |
|
break; |
214 |
|
p96PIP_GetTags(the_win, P96PIP_SourceBitMap, (ULONG)&the_bitmap, TAG_END); |
215 |
|
|
216 |
|
// Add resolution and set VideoMonitor |
219 |
– |
set_video_monitor(width, height, p96GetBitMapAttr(the_bitmap, P96BMA_BYTESPERROW), 16); |
217 |
|
VideoMonitor.mac_frame_base = p96GetBitMapAttr(the_bitmap, P96BMA_MEMORY); |
218 |
+ |
set_video_monitor(width, height, p96GetBitMapAttr(the_bitmap, P96BMA_BYTESPERROW), 16); |
219 |
|
return true; |
220 |
|
} |
221 |
|
|
538 |
|
|
539 |
|
void video_set_palette(uint8 *pal) |
540 |
|
{ |
541 |
< |
if (display_type == DISPLAY_SCREEN_P96 || display_type == DISPLAY_SCREEN_CGFX) { |
541 |
> |
if ((display_type == DISPLAY_SCREEN_P96 || display_type == DISPLAY_SCREEN_CGFX) |
542 |
> |
&& !IsDirectMode(VideoMonitor.mode)) { |
543 |
|
|
544 |
|
// Convert palette to 32 bits |
545 |
|
ULONG table[2 + 256 * 3]; |