Kandinsky now uses KDSetPixel for framebuffer access

This commit is contained in:
Romain Goyet
2015-09-01 11:37:12 +02:00
parent 25b95d1278
commit d70d3b4e4a
10 changed files with 70 additions and 39 deletions

View File

@@ -3,8 +3,8 @@
#include <kandinsky/color.h>
#include <kandinsky/line.h>
#include <kandinsky/pixel.h>
#include <kandinsky/rect.h>
#include <kandinsky/referential.h>
#include <kandinsky/text.h>
#include <kandinsky/types.h>

View File

@@ -4,18 +4,18 @@
#include <stdint.h>
#include <kandinsky/config.h>
#if (KD_BITS_PER_PIXEL & (KD_BITS_PER_PIXEL - 1))
#error KD_BITS_PER_PIXEL should be a power of two!
// PoT implies that all pixels are byte-aligned
#endif
#if KD_BITS_PER_PIXEL <= 8
#warning KD_BITS_PER_PIXEL
#warning 8 bpp
typedef uint8_t KDColor;
/*
#elif KD_BITS_PER_PIXEL <= 16
#elif KD_BITS_PER_PIXEL == 16
typedef uint16_t KDColor;
#elif KD_BITS_PER_PIXEL <= 32
#elif KD_BITS_PER_PIXEL == 32
typedef uint32_t KDColor;
#elif KD_BITS_PER_PIXEL <= 64
#elif KD_BITS_PER_PIXEL == 64
typedef uint64_t KDColor;
*/
#else
#error KD_BITS_PER_PIXEL is too large!
#endif

View File

@@ -1,8 +1,9 @@
#ifndef KANDINSKY_LINE_H
#define KANDINSKY_LINE_H
#include <kandinsky/color.h>
#include <kandinsky/types.h>
void KDDrawLine(KDPoint p1, KDPoint p2);
void KDDrawLine(KDPoint p1, KDPoint p2);//, KDColor c);
#endif