Debian Codegraph @

src/VramBitMappedView.cpp

raw symbols SCIP
1 #cxx . . $ `<file>/src/VramBitMappedView.cpp`/include "VramBitMappedView.h"cxx . . $ `<file>/src/VramBitMappedView.h`/
2 #include "ranges.h"cxx . . $ `<file>/src/ranges.h`/
3 #include <QPainter>
4 #include <algorithm>
5 #include <cstdio>
6
7 VramBitMappedViewcxx . . $ VramBitMappedView#::VramBitMappedViewcxx . . $ VramBitMappedView#VramBitMappedView(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent)
8 : QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent)
9 , imagecxx . . $ VramBitMappedView#image.(512, 512, QImagecxx . . $ QImage#::Format_RGB32cxx . . $ QImage#Format_RGB32.)
10 {
11 rangescxx . . $ ranges/::fillcxx . . $ ranges/fill(af49599c1c6f79df).(msxPalettecxx . . $ VramBitMappedView#msxPalette., qRgbcxx . . $ qRgb(530956271a9518a5).(80, 80, 80));
12 setZoomcxx . . $ VramBitMappedView#setZoom(9364e6e7bff7660).(1.0f);
13
14 // Mouse update events when mouse is moved over the image, Quibus likes this
15 // better than my preferred click-on-the-image.
16 setMouseTrackingcxx . . $ QWidget#setMouseTracking(b45ddcbc8423892c).(true);
17 }
18
19 void VramBitMappedViewcxx . . $ VramBitMappedView#::setZoomcxx . . $ VramBitMappedView#setZoom(9364e6e7bff7660).(float zoom)
20 {
21 zoomFactorcxx . . $ VramBitMappedView#zoomFactor. = stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a).(1.0f, zoom);
22 setFixedSizecxx . . $ QWidget#setFixedSize(3e454b8ccf442868).(int(512.0f * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.), int(float(linescxx . . $ VramBitMappedView#lines.) * 2.0f * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.));
23 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
24 }
25
26 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).()
27 {
28 if (!vramBasecxx . . $ VramBitMappedView#vramBase.) return;
29
30 printf("\n"
31 "screenMode: %i\n"
32 "vram to start decoding: %i\n",
33 screenModecxx . . $ VramBitMappedView#screenMode., vramAddresscxx . . $ VramBitMappedView#vramAddress.);
34 switch (screenModecxx . . $ VramBitMappedView#screenMode.) {
35 case 5: decodeSCR5cxx . . $ VramBitMappedView#decodeSCR5(49f6e7a06ebc5aa8).(); break;
36 case 6: decodeSCR6cxx . . $ VramBitMappedView#decodeSCR6(49f6e7a06ebc5aa8).(); break;
37 case 7: decodeSCR7cxx . . $ VramBitMappedView#decodeSCR7(49f6e7a06ebc5aa8).(); break;
38 case 8: decodeSCR8cxx . . $ VramBitMappedView#decodeSCR8(49f6e7a06ebc5aa8).(); break;
39 case 10:
40 case 11: decodeSCR10cxx . . $ VramBitMappedView#decodeSCR10(49f6e7a06ebc5aa8).(); break;
41 case 12: decodeSCR12cxx . . $ VramBitMappedView#decodeSCR12(49f6e7a06ebc5aa8).(); break;
42 }
43 pixImagecxx . . $ VramBitMappedView#pixImage. =cxx . . $ QPixmap#`operator=`(4972951fe8d596b5). QPixmapcxx . . $ QPixmap#::fromImagecxx . . $ QPixmap#fromImage(e89e6101063912f).(imagecxx . . $ VramBitMappedView#image.);
44 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
45 }
46
47 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).()
48 {
49 if (!palettecxx . . $ VramBitMappedView#palette.) return;
50
51 for (int i = 0; i < 16; ++i) {
52 int r = (palettecxx . . $ VramBitMappedView#palette.[2 * i + 0] & 0xf0) >> 4;
53 int b = (palettecxx . . $ VramBitMappedView#palette.[2 * i + 0] & 0x0f);
54 int g = (palettecxx . . $ VramBitMappedView#palette.[2 * i + 1] & 0x0f);
55 auto scale = [](int x) { return (x >> 1) | (x << 2) | (x << 5); };
56 msxPalettecxx . . $ VramBitMappedView#msxPalette.[i] = qRgbcxx . . $ qRgb(530956271a9518a5).(scale(cxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).$anonymous_type_0#`operator()`(7ccb52b1bfe01045).r), scale(cxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).$anonymous_type_0#`operator()`(7ccb52b1bfe01045).g), scale(cxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).$anonymous_type_0#`operator()`(7ccb52b1bfe01045).b));
57 }
58 }
59
60 static unsigned interleavecxx . . $ interleave(2141b656ce2cc063).(unsigned x)
61 {
62 return (x >> 1) | ((x & 1) << 16);
63 }
64
65 void VramBitMappedViewcxx . . $ VramBitMappedView#::setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(int x, int y, QRgbcxx . . $ QRgb# c)
66 {
67 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(2 * x + 0, 2 * y + 0, c);
68 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(2 * x + 1, 2 * y + 0, c);
69 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(2 * x + 0, 2 * y + 1, c);
70 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(2 * x + 1, 2 * y + 1, c);
71 }
72
73 void VramBitMappedViewcxx . . $ VramBitMappedView#::setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(int x, int y, QRgbcxx . . $ QRgb# c)
74 {
75 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(x, 2 * y + 0, c);
76 imagecxx . . $ VramBitMappedView#image..setPixelcxx . . $ QImage#setPixel(f59d17f8b9f2d3e1).(x, 2 * y + 1, c);
77 }
78
79 static QRgbcxx . . $ QRgb# decodeYJKcxx . . $ decodeYJK(530956271a9518a5).(int y, int j, int k)
80 {
81 int r = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).(y + j, 0, 31);
82 int g = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).(y + k, 0, 31);
83 int b = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).((5 * y - 2 * j - k) / 4, 0, 31);
84 auto scale = [](int x) { return (x << 3) | (x >> 2); };
85 return qRgbcxx . . $ qRgb(530956271a9518a5).(scale(cxx . . $ decodeYJK(530956271a9518a5).$anonymous_type_1#`operator()`(7ccb52b1bfe01045).r), scale(cxx . . $ decodeYJK(530956271a9518a5).$anonymous_type_1#`operator()`(7ccb52b1bfe01045).g), scale(cxx . . $ decodeYJK(530956271a9518a5).$anonymous_type_1#`operator()`(7ccb52b1bfe01045).b));
86 }
87
88 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR12cxx . . $ VramBitMappedView#decodeSCR12(49f6e7a06ebc5aa8).()
89 {
90 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
91 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
92 for (int x = 0; x < 256; x += 4) {
93 uint8_tcxx . . $ uint8_t# p[4];
94 p[0] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
95 p[1] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
96 p[2] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
97 p[3] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
98 int j = (p[2] & 7) + ((p[3] & 3) << 3) - ((p[3] & 4) << 3);
99 int k = (p[0] & 7) + ((p[1] & 3) << 3) - ((p[1] & 4) << 3);
100 for (int n = 0; n < 4; ++n) {
101 setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(x + n, y, decodeYJKcxx . . $ decodeYJK(530956271a9518a5).(p[n] >> 3, j, k));
102 }
103 }
104 }
105 }
106
107 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR10cxx . . $ VramBitMappedView#decodeSCR10(49f6e7a06ebc5aa8).()
108 {
109 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
110 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
111 for (int x = 0; x < 256; x += 4) {
112 uint8_tcxx . . $ uint8_t# p[4];
113 p[0] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
114 p[1] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
115 p[2] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
116 p[3] = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
117 int j = (p[2] & 7) + ((p[3] & 3) << 3) - ((p[3] & 4) << 3);
118 int k = (p[0] & 7) + ((p[1] & 3) << 3) - ((p[1] & 4) << 3);
119 for (int n = 0; n < 4; ++n) {
120 QRgbcxx . . $ QRgb# c = (p[n] & 0x08) ? msxPalettecxx . . $ VramBitMappedView#msxPalette.[p[n] >> 4] // YAE
121 : decodeYJKcxx . . $ decodeYJK(530956271a9518a5).(p[n] >> 3, j, k); // YJK
122 setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(x + n, y, c);
123 }
124 }
125 }
126 }
127
128 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR8cxx . . $ VramBitMappedView#decodeSCR8(49f6e7a06ebc5aa8).()
129 {
130 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
131 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
132 for (int x = 0; x < 256; ++x) {
133 uint8_tcxx . . $ uint8_t# val = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
134 int b = val & 0x03;
135 int r = val & 0x1C;
136 int g = val & 0xE0;
137
138 b = b | (b << 2) | (b << 4) | (b << 6);
139 r = (r >> 2) | r | (r << 3);
140 g = g | (g >> 3) | (g >> 6);
141
142 setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(x, y, qRgbcxx . . $ qRgb(530956271a9518a5).(r, g, b));
143 }
144 }
145 }
146
147 QRgbcxx . . $ QRgb# VramBitMappedViewcxx . . $ VramBitMappedView#::getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).(int c)
148 {
149 // TODO do we need to look at the TP bit???
150 return msxPalettecxx . . $ VramBitMappedView#msxPalette.[c ? c : borderColorcxx . . $ VramBitMappedView#borderColor.];
151 }
152
153 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR7cxx . . $ VramBitMappedView#decodeSCR7(49f6e7a06ebc5aa8).()
154 {
155 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
156 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
157 for (int x = 0; x < 512; x += 2) {
158 int val = vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(offset++)];
159 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 0, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 4) & 15));
160 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 1, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 0) & 15));
161 }
162 }
163 }
164
165 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR6cxx . . $ VramBitMappedView#decodeSCR6(49f6e7a06ebc5aa8).()
166 {
167 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
168 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
169 for (int x = 0; x < 512; x += 4) {
170 int val = vramBasecxx . . $ VramBitMappedView#vramBase.[offset++];
171 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 0, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 6) & 3));
172 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 1, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 4) & 3));
173 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 2, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 2) & 3));
174 setPixel1x2cxx . . $ VramBitMappedView#setPixel1x2(f59d17f8b9f2d3e1).(x + 3, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 0) & 3));
175 }
176 }
177 }
178
179 void VramBitMappedViewcxx . . $ VramBitMappedView#::decodeSCR5cxx . . $ VramBitMappedView#decodeSCR5(49f6e7a06ebc5aa8).()
180 {
181 auto offset = vramAddresscxx . . $ VramBitMappedView#vramAddress.;
182 for (int y = 0; y < linescxx . . $ VramBitMappedView#lines.; ++y) {
183 for (int x = 0; x < 256; x += 2) {
184 int val = vramBasecxx . . $ VramBitMappedView#vramBase.[offset++];
185 setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(x + 0, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 4) & 15));
186 setPixel2x2cxx . . $ VramBitMappedView#setPixel2x2(f59d17f8b9f2d3e1).(x + 1, y, getColorcxx . . $ VramBitMappedView#getColor(46cc46841198e427).((val >> 0) & 15));
187 }
188 }
189 }
190
191 void VramBitMappedViewcxx . . $ VramBitMappedView#::paintEventcxx . . $ VramBitMappedView#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#* /*event*/)
192 {
193 QRectcxx . . $ QRect# srcRectcxx . . $ QRect#QRect(2261ffe5112eab06).(0, 0, 512, 2 * linescxx . . $ VramBitMappedView#lines.);
194 QRectcxx . . $ QRect# dstRectcxx . . $ QRect#QRect(2261ffe5112eab06).(0, 0, int(512.0f * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.), int(2.0f * float(linescxx . . $ VramBitMappedView#lines.) * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.));
195 QPaintercxx . . $ QPainter# qpcxx . . $ QPainter#QPainter(dd2eedc069b0ab5f).(this);
196 //qp.drawImage(rect(),image,srcRect);
197 qp.drawPixmapcxx . . $ QPainter#drawPixmap(583800ea2588537e).(dstRect, pixImagecxx . . $ VramBitMappedView#pixImage., srcRect);
198 }
199
200 void VramBitMappedViewcxx . . $ VramBitMappedView#::refreshcxx . . $ VramBitMappedView#refresh(49f6e7a06ebc5aa8).()
201 {
202 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
203 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
204 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
205 }
206
207 void VramBitMappedViewcxx . . $ VramBitMappedView#::mouseMoveEventcxx . . $ VramBitMappedView#mouseMoveEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* e)
208 {
209 static const unsigned bytesPerLine[] = {
210 0, //screen 0
211 1, //screen 1
212 2, // 2
213 3, // 3
214 4,
215 128, // 5
216 128,
217 256, // 7
218 256,
219 256, // 9
220 256,
221 256,
222 256
223 };
224 static const unsigned pixelsPerByte[] = {
225 0,1,2,3,4,
226 2, // 5
227 4,
228 2, // 7
229 1,
230 1, //9
231 1,
232 1,
233 1
234 };
235
236 int x = int(float(e->xcxx . . $ QMouseEvent#x(455f465bc33b4cdf).()) / zoomFactorcxx . . $ VramBitMappedView#zoomFactor.);
237 int y = int(float(e->ycxx . . $ QMouseEvent#y(455f465bc33b4cdf).()) / zoomFactorcxx . . $ VramBitMappedView#zoomFactor.) / 2;
238
239 // I see negative y-coords sometimes, so for safety clip the coords
240 x = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).(x, 0, 511);
241 y = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).(y, 0, 255);
242
243 if ((screenModecxx . . $ VramBitMappedView#screenMode. != 6) && (screenModecxx . . $ VramBitMappedView#screenMode. != 7)) {
244 x /= 2;
245 }
246
247 unsigned offset = bytesPerLine[screenModecxx . . $ VramBitMappedView#screenMode.] * y
248 + x / pixelsPerByte[screenModecxx . . $ VramBitMappedView#screenMode.];
249 unsigned addr = offset + vramAddresscxx . . $ VramBitMappedView#vramAddress.;
250 int val = (screenModecxx . . $ VramBitMappedView#screenMode. >= 7) ? vramBasecxx . . $ VramBitMappedView#vramBase.[interleavecxx . . $ interleave(2141b656ce2cc063).(addr)]
251 : vramBasecxx . . $ VramBitMappedView#vramBase.[addr];
252
253 int color = [&] {
254 switch (screenModecxx . . $ VramBitMappedView#screenMode.) {
255 case 5: case 7:
256 return ((x & 1) ? val : (val >> 4)) & 15;
257 case 6:
258 return (val >> (2 * (3 - (x & 3)))) & 3;
259 case 8: case 10: case 11: case 12:
260 return val;
261 default:
262 return 0; // avoid warning
263 }
264 }(cxx . . $ VramBitMappedView#mouseMoveEvent(702858a82d06265c).$anonymous_type_2#`operator()`(455f465bc33b4cdf).);
265 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! imageHoveredcxx . . $ VramBitMappedView#imageHovered(deee8b20ba58dd0a).(x, y, color, addr, val);
266 }
267
268 void VramBitMappedViewcxx . . $ VramBitMappedView#::mousePressEventcxx . . $ VramBitMappedView#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* e)
269 {
270 // since mouseMove only emits the correct signal we reuse/abuse that method
271 mouseMoveEventcxx . . $ VramBitMappedView#mouseMoveEvent(702858a82d06265c).(e);
272
273 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
274 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
275 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
276 }
277
278 void VramBitMappedViewcxx . . $ VramBitMappedView#::setBorderColorcxx . . $ VramBitMappedView#setBorderColor(d4f767463ce0a6b3).(int value)
279 {
280 borderColorcxx . . $ VramBitMappedView#borderColor. = stdcxx . . $ std/::clampcxx . . $ std/clamp(3dbe0c69cb86ae06).(value, 0, 15);
281 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
282 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
283 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
284 }
285
286 void VramBitMappedViewcxx . . $ VramBitMappedView#::setScreenModecxx . . $ VramBitMappedView#setScreenMode(d4f767463ce0a6b3).(int mode)
287 {
288 screenModecxx . . $ VramBitMappedView#screenMode. = mode;
289 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
290 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
291 }
292
293 void VramBitMappedViewcxx . . $ VramBitMappedView#::setLinescxx . . $ VramBitMappedView#setLines(d4f767463ce0a6b3).(int nrLines)
294 {
295 linescxx . . $ VramBitMappedView#lines. = nrLines;
296 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
297 setFixedSizecxx . . $ QWidget#setFixedSize(3e454b8ccf442868).(int(512.0f * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.), int(float(linescxx . . $ VramBitMappedView#lines.) * 2.0f * zoomFactorcxx . . $ VramBitMappedView#zoomFactor.));
298 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
299 //setZoom(zoomFactor);
300 }
301
302 void VramBitMappedViewcxx . . $ VramBitMappedView#::setVramAddresscxx . . $ VramBitMappedView#setVramAddress(d4f767463ce0a6b3).(int adr)
303 {
304 vramAddresscxx . . $ VramBitMappedView#vramAddress. = adr;
305 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
306 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
307 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
308 }
309
310 void VramBitMappedViewcxx . . $ VramBitMappedView#::setVramSourcecxx . . $ VramBitMappedView#setVramSource(28caea9380bfac8a).(const uint8_tcxx . . $ uint8_t#* adr)
311 {
312 vramBasecxx . . $ VramBitMappedView#vramBase. = adr;
313 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
314 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
315 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
316 }
317
318 void VramBitMappedViewcxx . . $ VramBitMappedView#::setPaletteSourcecxx . . $ VramBitMappedView#setPaletteSource(28caea9380bfac8a).(const uint8_tcxx . . $ uint8_t#* adr)
319 {
320 palettecxx . . $ VramBitMappedView#palette. = adr;
321 decodePalletcxx . . $ VramBitMappedView#decodePallet(49f6e7a06ebc5aa8).();
322 decodecxx . . $ VramBitMappedView#decode(49f6e7a06ebc5aa8).();
323 updatecxx . . $ QWidget#update(49f6e7a06ebc5aa8).();
324 }