# HG changeset patch # User John Tsiombikas # Date 1379783908 -10800 # Node ID ad6b185723cd03962911d2b437d194c5b926502c # Parent 4ad71b558ab27a5147fa6803eba1f494b03d9096 foo diff -r 4ad71b558ab2 -r ad6b185723cd dosemu/dosemu.c --- a/dosemu/dosemu.c Sat Sep 21 19:09:03 2013 +0300 +++ b/dosemu/dosemu.c Sat Sep 21 20:18:28 2013 +0300 @@ -1,21 +1,3 @@ -/* -256-color 3D graphics hack for real-mode DOS. -Copyright (C) 2011 John Tsiombikas - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - /* This file implements all calls made to dos-specific code using SDL * Don't ask why ... */ @@ -23,19 +5,19 @@ #include #include #include -#include "vga.h" +#include "wvga.h" #include "conio.h" #include "mouse.h" #include "timer.h" static void proc_events(void); -/* ----- graphics (vga.c implementation) ----- */ +/* ----- graphics (wvga.c implementation) ----- */ static SDL_Surface *fbsurf; #define DOUBLESZ (fbsurf->w != 320) -void set_video_mode(int mode) +int set_video_mode(int mode) { int resx = 320, resy = 200; unsigned int sdl_flags = SDL_HWPALETTE; @@ -69,22 +51,36 @@ default: break; } + + return 0; } -void set_palette(unsigned char c, unsigned char r, unsigned char g, unsigned char b) +void set_palette(int idx, int *col, int count) +{ + int i; + + for(i=0; i +#endif #endif /* INT_TYPES_H_ */