[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

#ifndef PREFS_WBPATTERN_H
#define PREFS_WBPATTERN_H
/*
**      $VER: wbpattern.h 44.1 (19.10.1999)
**      Includes Release 44.1
**
**      File format for wbpattern preferences
**
**
**      (C) Copyright 1987-1999 Amiga, Inc.
**          All Rights Reserved
*/

/*****************************************************************************/

#ifndef LIBRARIES_IFFPARSE_H
#include <libraries/iffparse.h>
#endif

/*****************************************************************************/

#define ID_PTRN MAKE_ID('P','T','R','N')

/*****************************************************************************/

struct WBPatternPrefs
{
    ULONG        wbp_Reserved[4];
    UWORD        wbp_Which;                     /* Which pattern is it */
    UWORD        wbp_Flags;
    BYTE         wbp_Revision;                  /* Must be set to zero */
    BYTE         wbp_Depth;                     /* Depth of pattern */
    UWORD        wbp_DataLength;                /* Length of following data */
};

/*****************************************************************************/

/* constants for WBPatternPrefs.wbp_Which */
#define WBP_ROOT        0
#define WBP_DRAWER      1
#define WBP_SCREEN      2

/* wbp_Flags values */
#define WBPF_PATTERN    0x0001
    /* Data contains a pattern */

#define WBPF_NOREMAP    0x0010
    /* Don't remap the pattern */

        /* PDTA_DitherQuality: see pictureclass.h */
#define WBPF_DITHER_MASK        0x0300
#define WBPF_DITHER_DEF         0x0000 /* DitherQuality: Default */
#define WBPF_DITHER_BAD         0x0100 /* DitherQuality: 0 */
#define WBPF_DITHER_GOOD        0x0200 /* DitherQuality: 2 */
#define WBPF_DITHER_BEST        0x0300 /* DitherQuality: 4 */

        /* OBP_Precision: see pictureclass.h */
#define WBPF_PRECISION_MASK     0x0C00
#define WBPF_PRECISION_DEF      0x0000
#define WBPF_PRECISION_ICON     0x0400
#define WBPF_PRECISION_IMAGE    0x0800
#define WBPF_PRECISION_EXACT    0x0C00

/*****************************************************************************/

#define MAXDEPTH        3       /*  Max depth supported (8 colors) */
#define DEFPATDEPTH     2       /*  Depth of default patterns */

/*  Pattern width & height: */
#define PAT_WIDTH       16
#define PAT_HEIGHT      16

/*****************************************************************************/

#endif /* PREFS_WBPATTERN_H */