forked from enlightenment/efl
Evas rg_etc2: Fix Windows build
Use unsigned char/int instead of stdint in the header file.
This commit is contained in:
parent
9952699820
commit
69cbfc7530
|
@ -38,10 +38,10 @@ void rg_etc1_pack_block_init();
|
||||||
unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params);
|
unsigned int rg_etc1_pack_block(void* pETC1_block, const unsigned int* pSrc_pixels_BGRA, rg_etc1_pack_params *pack_params);
|
||||||
|
|
||||||
// ETC2 support: RGB8_ETC2
|
// ETC2 support: RGB8_ETC2
|
||||||
void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra);
|
void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra);
|
||||||
|
|
||||||
// ETC2 support: RGBA8_ETC2_EAC
|
// ETC2 support: RGBA8_ETC2_EAC
|
||||||
void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra);
|
void rg_etc2_rgba8_decode_block(const unsigned char *etc_block, unsigned int *bgra);
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
|
|
@ -36,8 +36,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <Eina.h>
|
#include <Eina.h>
|
||||||
#include "rg_etc1.h"
|
#include "rg_etc1.h"
|
||||||
|
|
||||||
void rg_etc2_rgb8_decode_block(const uint8_t *etc_block, uint32_t *bgra);
|
void rg_etc2_rgb8_decode_block(const unsigned char *etc_block, unsigned int *bgra);
|
||||||
void rg_etc2_rgba8_decode_block(const uint8_t *etc_block, uint32_t *bgra);
|
void rg_etc2_rgba8_decode_block(const unsigned char *etc_block, unsigned int *bgra);
|
||||||
|
|
||||||
typedef const uint8_t etc_block;
|
typedef const uint8_t etc_block;
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ _TH_paint(const uint8_t *etc, uint32_t paint_colors[4], uint32_t *bgra)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rg_etc2_rgb8_decode_block(const uint8_t *etc, uint32_t *bgra)
|
rg_etc2_rgb8_decode_block(const unsigned char *etc, unsigned int *bgra)
|
||||||
{
|
{
|
||||||
// Check differential mode bit
|
// Check differential mode bit
|
||||||
if ((etc[3] & 0x2) == 0)
|
if ((etc[3] & 0x2) == 0)
|
||||||
|
|
Loading…
Reference in New Issue