ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/include/video_defs.h
(Generate patch)

Comparing SheepShaver/src/include/video_defs.h (file contents):
Revision 1.3 by gbeauche, 2004-04-10T23:15:22Z vs.
Revision 1.5 by gbeauche, 2004-04-22T21:45:17Z

# Line 22 | Line 22
22   #define VIDEO_DEFS_H
23  
24   #include "macos_util.h"
25 + #include <stddef.h>
26  
27  
28   /*
# Line 307 | Line 308 | enum { // CursorImage struct
308   *  Structures for graphics acceleration
309   */
310  
311 < typedef void *CTabHandle;
311 > typedef uint32 CTabHandle;
312  
313   // Parameter block passed to acceleration hooks
314   struct accl_params {
# Line 324 | Line 325 | struct accl_params {
325          uint32 unknown2[3];
326  
327          uint32 src_base_addr;
328 <        uint32 src_row_bytes;
328 >        int32 src_row_bytes;
329          int16 src_bounds[4];
330          uint32 src_unknown1;
331          uint32 src_pixel_type;
# Line 337 | Line 338 | struct accl_params {
338          uint32 src_unknown4;
339  
340          uint32 dest_base_addr;
341 <        uint32 dest_row_bytes;
341 >        int32 dest_row_bytes;
342          int16 dest_bounds[4];
343          uint32 dest_unknown1;
344          uint32 dest_pixel_type;
# Line 356 | Line 357 | struct accl_params {
357  
358          uint32 unknown4[38];
359  
360 <        void (*draw_proc)(accl_params *);
360 >        uint32 draw_proc;
361          // Argument for accl_sync_hook at offset 0x4f8
362   };
363  
364 + enum {
365 +        acclTransferMode        = offsetof(accl_params, transfer_mode),
366 +        acclPenMode                     = offsetof(accl_params, pen_mode),
367 +        acclForePen                     = offsetof(accl_params, fore_pen),
368 +        acclBackPen                     = offsetof(accl_params, back_pen),
369 +        acclSrcBaseAddr         = offsetof(accl_params, src_base_addr),
370 +        acclSrcRowBytes         = offsetof(accl_params, src_row_bytes),
371 +        acclSrcBoundsRect       = offsetof(accl_params, src_bounds),
372 +        acclSrcPixelType        = offsetof(accl_params, src_pixel_type),
373 +        acclSrcPixelSize        = offsetof(accl_params, src_pixel_size),
374 +        acclSrcCmpCount         = offsetof(accl_params, src_cmp_count),
375 +        acclSrcCmpSize          = offsetof(accl_params, src_cmp_size),
376 +        acclSrcPMTable          = offsetof(accl_params, src_pm_table),
377 +        acclDestBaseAddr        = offsetof(accl_params, dest_base_addr),
378 +        acclDestRowBytes        = offsetof(accl_params, dest_row_bytes),
379 +        acclDestBoundsRect      = offsetof(accl_params, dest_bounds),
380 +        acclDestPixelType       = offsetof(accl_params, dest_pixel_type),
381 +        acclDestPixelSize       = offsetof(accl_params, dest_pixel_size),
382 +        acclDestCmpCount        = offsetof(accl_params, dest_cmp_count),
383 +        acclDestCmpSize         = offsetof(accl_params, dest_cmp_size),
384 +        acclDestPMTable         = offsetof(accl_params, dest_pm_table),
385 +        acclSrcRect                     = offsetof(accl_params, src_rect),
386 +        acclDestRect            = offsetof(accl_params, dest_rect),
387 +        acclDrawProc            = offsetof(accl_params, draw_proc)
388 + };
389 +
390   // Hook info for NQDMisc
391   struct accl_hook_info {
392 <        bool (*draw_func)(accl_params *);
393 <        bool (*sync_func)(void *);
392 >        uint32 draw_func;
393 >        uint32 sync_func;
394          uint32 code;
395   };
396  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines