File tree Expand file tree Collapse file tree 3 files changed +6
-25
lines changed
Expand file tree Collapse file tree 3 files changed +6
-25
lines changed Original file line number Diff line number Diff line change 11/*
22 * console.c
33 *
4- * Copyright (C) 2019-2021 Sylvain Munaut
4+ * Copyright (C) 2022 National Cheng Kung University, Taiwan.
55 * All rights reserved.
66 *
77 * This program is free software; you can redistribute it and/or
Original file line number Diff line number Diff line change 44 * System support code
55 *
66 * Copyright (C) 1993-1996 by id Software, Inc.
7- * Copyright (C) 2021 Sylvain Munaut
7+ * Copyright (C) 2022 National Cheng Kung University, Taiwan.
88 * All rights reserved.
99 *
1010 * This program is free software; you can redistribute it and/or
Original file line number Diff line number Diff line change 33 *
44 * Video system support code
55 *
6- * Copyright (C) 2021 Sylvain Munaut
6+ * Copyright (C) 2022 National Cheng Kung University, Taiwan.
77 * All rights reserved.
88 *
99 * This program is free software; you can redistribute it and/or
@@ -53,12 +53,10 @@ I_ShutdownGraphics(void)
5353void
5454I_SetPalette (byte * palette )
5555{
56- byte r , g , b ;
57-
5856 for (int i = 0 ; i < 256 ; i ++ ) {
59- r = gammatable [usegamma ][* palette ++ ];
60- g = gammatable [usegamma ][* palette ++ ];
61- b = gammatable [usegamma ][* palette ++ ];
57+ byte r = gammatable [usegamma ][* palette ++ ];
58+ byte g = gammatable [usegamma ][* palette ++ ];
59+ byte b = gammatable [usegamma ][* palette ++ ];
6260 video_pal [i ] = ((uint32_t )r << 16 ) | ((uint32_t )g << 8 ) | (uint32_t )b ;
6361 }
6462}
@@ -110,26 +108,9 @@ I_WaitVBL(int count)
110108void
111109I_ReadScreen (byte * scr )
112110{
113- /* FIXME: Would have though reading from VID_FB_BASE be better ...
114- * but it seems buggy. Not sure if the problem is in the
115- * gateware
116- */
117111 memcpy (
118112 scr ,
119113 screens [0 ],
120114 SCREENHEIGHT * SCREENWIDTH
121115 );
122116}
123-
124-
125- #if 0 /* WTF ? Not used ... */
126- void
127- I_BeginRead (void )
128- {
129- }
130-
131- void
132- I_EndRead (void )
133- {
134- }
135- #endif
You can’t perform that action at this time.
0 commit comments