Re: minisphere 4.3.8
Reply #1442 –
So I ran it on my mac build of miniSPhere and got two problems....
Firstly duplication of the text and secondly blue background.
Note the difference between the two screenshots;
This code produced the one with the duplication:
const prim = require('prim');
var image = LoadSurface('Title.png');
var slice1 = image.cloneSection(0, 0, 300, 75).createImage();
var slice2 = image.cloneSection(0, 75, 300, 75).createImage();
while (!IsKeyPressed(KEY_ESCAPE)) {
prim.fill(screen, Color.Chartreuse);
image.blit(0, 0);
slice1.blit(300, 0);
slice2.blit(300, 75);
screen.flip();
}
This code prodcued the one without the duplication:
const prim = require('prim');
var image = LoadSurface('Title.png');
var slice1 = image.cloneSection(0, 0, 300, 75);
var slice2 = image.cloneSection(0, 75, 300, 75);
while (!IsKeyPressed(KEY_ESCAPE)) {
prim.fill(screen, Color.Chartreuse);
image.blit(0, 0);
slice1.blit(300, 0);
slice2.blit(300, 75);
screen.flip();
}
In both cases the transparency is lost.