Commit 9ac1b105 authored by Scott Duensing's avatar Scott Duensing

Fixed jlDrawPixelSet() on the IIgs.

parent d3fa3874
......@@ -881,6 +881,7 @@ asmGetPoint start
temp1 equ 1
jsubroutine (4:surface,2:Xp,2:Yp),2
using GlobalData
lda Yp ; Load accumulator with Y location
asl a ; Shift accumulator left (multiply by 2) for word offset into table
......
......@@ -23,6 +23,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#define JOEY_MAIN
......@@ -155,7 +156,19 @@ void blitTest(void) {
}
void grid() {
void exerciseAPI(void) {
jlDrawColorSet(0);
jlDrawClear();
jlDrawColorSet(15);
jlDrawPixelSet(10, 10);
assert(jlDrawPixelGet(10, 10) == 15);
}
void grid(void) {
int i;
jlDrawColorSet(0);
......@@ -283,7 +296,8 @@ int main(void) {
jlUtilStartup("JoeyLib Test");
//blitTest();
grid();
exerciseAPI();
//grid();
//lineTest();
jlUtilShutdown();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment