Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/adamem/files/patch-X.c
16461 views
1
--- X.c.orig Wed Sep 22 13:33:07 2004
2
+++ X.c Wed Sep 22 13:33:49 2004
3
@@ -1370,41 +1370,41 @@
4
return 2;
5
}
6
7
-static void PutPixel32_0 (int offset,int c)
8
+FASTCALL static void PutPixel32_0 (int offset,int c)
9
{
10
*(unsigned*)(DisplayBuf+offset*4)=c;
11
}
12
13
-static void PutPixel16_0 (int offset,int c)
14
+FASTCALL static void PutPixel16_0 (int offset,int c)
15
{
16
*(unsigned short*)(DisplayBuf+offset*2)=c;
17
}
18
19
-static void PutPixel8_0 (int offset,int c)
20
+FASTCALL static void PutPixel8_0 (int offset,int c)
21
{
22
DisplayBuf[offset]=c;
23
}
24
25
-static void PutPixel32_1 (int offset,int c)
26
+FASTCALL static void PutPixel32_1 (int offset,int c)
27
{
28
*(unsigned*)(DisplayBuf+offset*4*2)=
29
*(unsigned*)(DisplayBuf+offset*4*2+1)=
30
c;
31
}
32
33
-static void PutPixel16_1 (int offset,int c)
34
+FASTCALL static void PutPixel16_1 (int offset,int c)
35
{
36
*(unsigned short*)(DisplayBuf+offset*2*2)=
37
*(unsigned short*)(DisplayBuf+offset*2*2+1)=
38
c;
39
}
40
41
-static void PutPixel8_1 (int offset,int c)
42
+FASTCALL static void PutPixel8_1 (int offset,int c)
43
{
44
DisplayBuf[offset*2]=DisplayBuf[offset*2+1]=c;
45
}
46
47
-static void PutPixel32_2 (int offset,int c)
48
+FASTCALL static void PutPixel32_2 (int offset,int c)
49
{
50
offset=(offset&0x00FF)+((offset&0xFF00)<<1);
51
*(unsigned*)(DisplayBuf+offset*4*2)=
52
@@ -1412,7 +1412,7 @@
53
c;
54
}
55
56
-static void PutPixel16_2 (int offset,int c)
57
+FASTCALL static void PutPixel16_2 (int offset,int c)
58
{
59
offset=(offset&0x00FF)+((offset&0xFF00)<<1);
60
*(unsigned short*)(DisplayBuf+offset*2*2)=
61
@@ -1420,7 +1420,7 @@
62
c;
63
}
64
65
-static void PutPixel8_2 (int offset,int c)
66
+FASTCALL static void PutPixel8_2 (int offset,int c)
67
{
68
offset=(offset&0x00FF)+((offset&0xFF00)<<1);
69
DisplayBuf[offset*2]=DisplayBuf[offset*2+1]=c;
70
71