X10 simu upright and working

This commit is contained in:
Kilrah
2017-10-09 09:56:37 +02:00
parent 380adaad3b
commit 64a4f10ec7
3 changed files with 8 additions and 9 deletions
+4 -4
View File
@@ -24,7 +24,7 @@
#include <inttypes.h>
#include "colors.h"
#if defined(PCBX10)
#if defined(PCBX10) && !defined(SIMU)
#define MOVE_PIXEL_RIGHT(p, count) p -= count
#else
#define MOVE_PIXEL_RIGHT(p, count) p += count
@@ -86,7 +86,7 @@ class BitmapBufferBase
inline const display_t * getPixelPtr(coord_t x, coord_t y) const
{
#if defined(PCBX10)
#if defined(PCBX10) && !defined(SIMU)
x = width - x - 1;
y = height - y - 1;
#endif
@@ -165,7 +165,7 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
inline const display_t * getPixelPtr(coord_t x, coord_t y) const
{
#if defined(PCBX10)
#if defined(PCBX10) && !defined(SIMU)
x = width - x - 1;
y = height - y - 1;
#endif
@@ -174,7 +174,7 @@ class BitmapBuffer: public BitmapBufferBase<uint16_t>
inline display_t * getPixelPtr(coord_t x, coord_t y)
{
#if defined(PCBX10)
#if defined(PCBX10) && !defined(SIMU)
x = width - x - 1;
y = height - y - 1;
#endif