From 78b32e05a8e3c221279ba40c8f19d762420be8a6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 14 Aug 2017 08:06:11 +0200 Subject: C++ comments need to become C --- source/gfx.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/gfx.h') diff --git a/source/gfx.h b/source/gfx.h index 5599527..582f7c2 100644 --- a/source/gfx.h +++ b/source/gfx.h @@ -36,17 +36,17 @@ typedef struct uint16_t* X2; uint16_t* ZERO_OR_X2; uint16_t* ZERO; - uint32_t RealPitch; // True pitch of Screen buffer. - uint32_t Pitch2; // Same as RealPitch except while using speed up hack for Glide. - uint32_t ZPitch; // Pitch of ZBuffer - uint32_t PPL; // Number of pixels on each of Screen buffer + uint32_t RealPitch; /* True pitch of Screen buffer. */ + uint32_t Pitch2; /* Same as RealPitch except while using speed up hack for Glide. */ + uint32_t ZPitch; /* Pitch of ZBuffer */ + uint32_t PPL; /* Number of pixels on each of Screen buffer */ uint32_t PPLx2; uint32_t PixSize; uint8_t* S; uint8_t* DB; ptrdiff_t DepthDelta; - uint8_t Z1; // Depth for comparison - uint8_t Z2; // Depth to save + uint8_t Z1; /* Depth for comparison */ + uint8_t Z2; /* Depth to save */ uint32_t FixedColour; uint32_t StartY; uint32_t EndY; @@ -75,7 +75,7 @@ typedef struct bool Pseudo; } SGFX; -// External port interface which must be implemented or initialised for each port. +/* External port interface which must be implemented or initialised for each port. */ extern SGFX GFX; typedef struct @@ -126,7 +126,7 @@ extern uint16_t DirectColourMaps [8][256]; extern uint8_t mul_brightness [16][32]; -// Could use BSWAP instruction on Intel port... +/* Could use BSWAP instruction on Intel port... */ #define SWAP_DWORD(dword) dword = ((((dword) & 0x000000ff) << 24) \ | (((dword) & 0x0000ff00) << 8) \ | (((dword) & 0x00ff0000) >> 8) \ -- cgit v1.2.3