Skip to content

Commit cc3ad52

Browse files
committed
Revise copyright notice
1 parent b446ba9 commit cc3ad52

File tree

3 files changed

+6
-25
lines changed

3 files changed

+6
-25
lines changed

src/riscv/console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

src/riscv/i_system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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

src/riscv/i_video.c

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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)
5353
void
5454
I_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)
110108
void
111109
I_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

0 commit comments

Comments
 (0)