Browse Source

Correction de bugs

master
Fife 3 years ago
parent
commit
8308c5a006
2 changed files with 8 additions and 6 deletions
  1. 2
    2
      AldeBasiClib.c
  2. 6
    4
      AldeBasiClib.h

+ 2
- 2
AldeBasiClib.c View File

@@ -1,9 +1,9 @@
#include "MonochromeLib.h"
#include "AldeBasiClib.h"

void PlotChg(int x, int y)
{
if(PxlTest(x,64-y) == ML_BLACK)PlotOff(x,y);
if(PlotTest(x,y) == ML_BLACK)PlotOff(x,y);
else PlotOn(x,y);
}


+ 6
- 4
AldeBasiClib.h View File

@@ -14,8 +14,9 @@
#define RclVRAM ML_display_vram()
#define ClrVRAM ML_clear_vram()

#define PlotOn(x,y) ML_Pixel(x,64-y,ML_BLACK)
#define PlotOff(x,y) ML_Pixel(x,64-y,ML_WHITE)
#define PlotOn(x,y) ML_pixel(x,64-y,ML_BLACK)
#define PlotOff(x,y) ML_pixel(x,64-y,ML_WHITE)
#define PlotTest(x,y) ML_pixel_test(x,64-y)

#define F-Line(a,b,c,d) ML_line(a,b,c,d,ML_BLACK)
#define Circle(x,y,z) ML_circle(x,y,z,ML_BLACK)
@@ -23,8 +24,9 @@
#define Vertical(x) ML_vertical_line(x,1,63,ML_BLACK)
#define Horizontal(y) ML_horizontal_line(y,1,127,ML_BLACK)

#define PxlOn ML_Pixel(x,y,ML_BLACK)
#define PxlOff ML_Pixel(x,y,ML_WHITE)
#define PxlOn(x,y) ML_pixel(x,y,ML_BLACK)
#define PxlOff(x,y) ML_pixel(x,y,ML_WHITE)

#define PxlTest(x,y) ML_pixel_test(x,y)

#define Text(x,y,txt) PrintMini(x,y,#txt,0)

Loading…
Cancel
Save