Previous 15994 Revisions Next

r3893 Friday 19th December, 2008 at 21:21:49 UTC by Wilbert Pol
Removed deprecat.h from video/pc_vga.c
[src/mess/video]pc_vga.c pc_video.c pc_video.h

src/mess/video/pc_vga.c
r3892r3893
2929***************************************************************************/
3030
3131#include "driver.h"
32#include "deprecat.h"
3332#include "pc_vga.h"
3433#include "pc_video.h"
3534
r3892r3893
5251static VIDEO_RESET( ega );
5352static VIDEO_RESET( vga );
5453
55static pc_video_update_proc pc_vga_choosevideomode(int *width, int *height, struct mscrtc6845 *crtc);
56static pc_video_update_proc pc_ega_choosevideomode(int *width, int *height, struct mscrtc6845 *crtc);
54static pc_video_update_proc pc_vga_choosevideomode(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc);
55static pc_video_update_proc pc_ega_choosevideomode(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc);
5756
5857/***************************************************************************
5958
r3892r3893
13711370   }
13721371}
13731372
1374static pc_video_update_proc pc_ega_choosevideomode(int *width, int *height, struct mscrtc6845 *crtc)
1373static pc_video_update_proc pc_ega_choosevideomode(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc)
13751374{
13761375   pc_video_update_proc proc = NULL;
13771376   int i;
r3892r3893
13791378   if (CRTC_ON)
13801379   {
13811380      for (i = 0; i < 16; i++)
1382         vga.pens[i]=Machine->pens[i/*vga.attribute.data[i]&0x3f*/];
1381         vga.pens[i]=machine->pens[i/*vga.attribute.data[i]&0x3f*/];
13831382
13841383      if (!GRAPHIC_MODE)
13851384      {
r3892r3893
13971396   return proc;
13981397}
13991398
1400static pc_video_update_proc pc_vga_choosevideomode(int *width, int *height, struct mscrtc6845 *crtc)
1399static pc_video_update_proc pc_vga_choosevideomode(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc)
14011400{
14021401   pc_video_update_proc proc = NULL;
14031402   int i;
r3892r3893
14081407      {
14091408         for (i=0; i<256;i++)
14101409         {
1411            palette_set_color_rgb(Machine, i,(vga.dac.color[i].red & 0x3f) << 2,
1410            palette_set_color_rgb(machine, i,(vga.dac.color[i].red & 0x3f) << 2,
14121411                            (vga.dac.color[i].green & 0x3f) << 2,
14131412                            (vga.dac.color[i].blue & 0x3f) << 2);
14141413         }
r3892r3893
14191418      {
14201419         for (i=0; i<16;i++)
14211420         {
1422            vga.pens[i] = Machine->pens[(vga.attribute.data[i]&0x0f)
1421            vga.pens[i] = machine->pens[(vga.attribute.data[i]&0x0f)
14231422                               |((vga.attribute.data[0x14]&0xf)<<4)];
14241423         }
14251424      }
r3892r3893
14271426      {
14281427         for (i=0; i<16;i++)
14291428         {
1430            vga.pens[i]=Machine->pens[(vga.attribute.data[i]&0x3f)
1429            vga.pens[i]=machine->pens[(vga.attribute.data[i]&0x3f)
14311430                               |((vga.attribute.data[0x14]&0xc)<<4)];
14321431         }
14331432      }
src/mess/video/pc_video.c
r3892r3893
1919
2020***************************************************************************/
2121
22static pc_video_update_proc (*pc_choosevideomode)(int *width, int *height, struct mscrtc6845 *crtc);
22static pc_video_update_proc (*pc_choosevideomode)(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc);
2323static struct mscrtc6845 *pc_crtc;
2424static int pc_anythingdirty;
2525static int pc_current_height;
r3892r3893
4040
4141
4242struct mscrtc6845 *pc_video_start(running_machine *machine, const struct mscrtc6845_config *config,
43   pc_video_update_proc (*choosevideomode)(int *width, int *height, struct mscrtc6845 *crtc),
43   pc_video_update_proc (*choosevideomode)(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc),
4444   size_t vramsize)
4545{
4646   pc_choosevideomode = choosevideomode;
r3892r3893
8282      h = mscrtc6845_get_char_height(pc_crtc) * mscrtc6845_get_char_lines(pc_crtc);
8383   }
8484
85   video_update = pc_choosevideomode(&w, &h, pc_crtc);
85   video_update = pc_choosevideomode(screen->machine, &w, &h, pc_crtc);
8686
8787   if (video_update)
8888   {
src/mess/video/pc_video.h
r3892r3893
1616   struct mscrtc6845 *crtc);
1717
1818struct mscrtc6845 *pc_video_start(running_machine *machine, const struct mscrtc6845_config *config,
19   pc_video_update_proc (*choosevideomode)(int *width, int *height, struct mscrtc6845 *crtc),
19   pc_video_update_proc (*choosevideomode)(running_machine *machine, int *width, int *height, struct mscrtc6845 *crtc),
2020   size_t vramsize);
2121
2222VIDEO_UPDATE( pc_video );

Previous 15994 Revisions Next


© 1998-2018 The MESS Team