118 |
|
static uint32 VModeParms(uint32 width, uint32 height, uint32 bytes_per_row, video_depth depth) |
119 |
|
{ |
120 |
|
uint32 ret = p; |
121 |
< |
Long(50); // Length |
122 |
< |
Long(0); // Base offset |
123 |
< |
Word(bytes_per_row); // Row bytes |
124 |
< |
Word(0); // Bounds |
121 |
> |
Long(50); // Length |
122 |
> |
Long(0); // Base offset |
123 |
> |
Word(bytes_per_row); // Row bytes |
124 |
> |
Word(0); // Bounds |
125 |
|
Word(0); |
126 |
|
Word(height); |
127 |
|
Word(width); |
128 |
< |
Word(0); // Version |
129 |
< |
Word(0); // Pack type |
130 |
< |
Long(0); // Pack size |
131 |
< |
Long(0x00480000); // HRes |
132 |
< |
Long(0x00480000); // VRes |
128 |
> |
Word(0); // Version |
129 |
> |
Word(0); // Pack type |
130 |
> |
Long(0); // Pack size |
131 |
> |
Long(0x00480000); // HRes |
132 |
> |
Long(0x00480000); // VRes |
133 |
|
switch (depth) { |
134 |
|
case VDEPTH_1BIT: |
135 |
< |
Word(0); // Pixel type (indirect) |
136 |
< |
Word(1); // Pixel size |
137 |
< |
Word(1); // CmpCount |
138 |
< |
Word(1); // CmpSize |
135 |
> |
Word(0); // Pixel type (indirect) |
136 |
> |
Word(1); // Pixel size |
137 |
> |
Word(1); // CmpCount |
138 |
> |
Word(1); // CmpSize |
139 |
|
break; |
140 |
|
case VDEPTH_2BIT: |
141 |
< |
Word(0); // Pixel type (indirect) |
142 |
< |
Word(2); // Pixel size |
143 |
< |
Word(1); // CmpCount |
144 |
< |
Word(2); // CmpSize |
141 |
> |
Word(0); // Pixel type (indirect) |
142 |
> |
Word(2); // Pixel size |
143 |
> |
Word(1); // CmpCount |
144 |
> |
Word(2); // CmpSize |
145 |
|
break; |
146 |
|
case VDEPTH_4BIT: |
147 |
< |
Word(0); // Pixel type (indirect) |
148 |
< |
Word(4); // Pixel size |
149 |
< |
Word(1); // CmpCount |
150 |
< |
Word(4); // CmpSize |
147 |
> |
Word(0); // Pixel type (indirect) |
148 |
> |
Word(4); // Pixel size |
149 |
> |
Word(1); // CmpCount |
150 |
> |
Word(4); // CmpSize |
151 |
|
break; |
152 |
|
case VDEPTH_8BIT: |
153 |
< |
Word(0); // Pixel type (indirect) |
154 |
< |
Word(8); // Pixel size |
155 |
< |
Word(1); // CmpCount |
156 |
< |
Word(8); // CmpSize |
153 |
> |
Word(0); // Pixel type (indirect) |
154 |
> |
Word(8); // Pixel size |
155 |
> |
Word(1); // CmpCount |
156 |
> |
Word(8); // CmpSize |
157 |
|
break; |
158 |
|
case VDEPTH_16BIT: |
159 |
< |
Word(16); // Pixel type (direct) |
160 |
< |
Word(16); // Pixel size |
161 |
< |
Word(3); // CmpCount |
162 |
< |
Word(5); // CmpSize |
159 |
> |
Word(16); // Pixel type (direct) |
160 |
> |
Word(16); // Pixel size |
161 |
> |
Word(3); // CmpCount |
162 |
> |
Word(5); // CmpSize |
163 |
|
break; |
164 |
|
case VDEPTH_32BIT: |
165 |
< |
Word(16); // Pixel type (direct) |
166 |
< |
Word(32); // Pixel size |
167 |
< |
Word(3); // CmpCount |
168 |
< |
Word(8); // CmpSize |
165 |
> |
Word(16); // Pixel type (direct) |
166 |
> |
Word(32); // Pixel size |
167 |
> |
Word(3); // CmpCount |
168 |
> |
Word(8); // CmpSize |
169 |
|
break; |
170 |
|
} |
171 |
< |
Long(0); // Plane size |
172 |
< |
Long(0); // Reserved |
171 |
> |
Long(0); // Plane size |
172 |
> |
Long(0); // Reserved |
173 |
|
return ret; |
174 |
|
} |
175 |
|
|
233 |
|
|
234 |
|
// Video sResource for default mode |
235 |
|
videoType = p; // Literals |
236 |
< |
Word(3); Word(1); Word(1); Word(0x4232); // Display Video Apple 'B2' |
236 |
> |
Word(3); Word(1); Word(1); Word(0x4232); // Display Video Apple 'B2' |
237 |
|
videoName = p; |
238 |
|
String("Display_Video_Apple_Basilisk"); |
239 |
|
minorBase = p; |
240 |
< |
Long(VideoMonitor.mac_frame_base); // Frame buffer base |
240 |
> |
Long(VideoMonitor.mac_frame_base); // Frame buffer base |
241 |
|
minorLength = p; |
242 |
< |
Long(VideoMonitor.mode.bytes_per_row * VideoMonitor.mode.y); // Frame buffer size |
242 |
> |
Long(0); // Frame buffer size (unspecified) |
243 |
|
|
244 |
|
videoDrvr = p; // Video driver |
245 |
|
Long(0x72); // Length |