Skip to main content
Home Forums 68kMLA Kaleidoscope Scheme to Appearance Theme Conversion — #7
Post #7 by Dennis Nedry
Source Forum68kMLA
CategoryTroubleshooting
Post DateFri, 13 Apr 2012 - 07:07
Original URLhttps://68kmla.org/bb/threads/kaleidoscope-scheme-to-appearance-theme-conversion.25108/
Post
A bit more progress. The racing stripes and title text are working now. It took a fair bit of head smashing to get through all the different behaviors of the title text, it acts a little bit differently depending on if there is a zoom box or not, especially as the window gets too small to display the text. But it's doing well now. Also, I ran into a strange inconsistency between cicn and pxm# data. pxm# requires all image data to exist within an even number of bytes per row, whereas cicn can be any whole number of bytes.

Say that you have a 1-bit image that is 17 pixels wide. In cicn, each row must be a whole number of bytes, so:

bits -> bytes

8 -> 1

16 -> 2

24 -> 3

32 -> 4

The nearest one for cicn is 24 bits, or 3 bytes per row. The remaining 7 bits just go to waste, they're clipped off and you don't see them, but they're in there.

In pxm#, the nearest one is 32 bits, or 4 bytes per row, because it must be an even number of bytes. So this requires more wasted bits (aka padding) that must be inserted.

I got through that one, that took a fair bit of effort but we're good.

The latest image shows working ppat (racing stripes), which proves a functional plut resource, and also it shows a 1-bit transparent pxm# (border around racing stripes). And the growbox.

Themes support separate images for vertical-only and horizontal-only zoom boxes, which is apparently not supported in Kaleidoscope as far as I can tell.

Do have a look at http://www.d.umn.edu/~bold0070/projects/scheme2theme/ for the latest source code. This code does not spit out a working theme file! There are a couple of necessary resources missing that must still be scavenged form a working theme. It does spit out some working theme resources though.

Picture 15.png

mp.ls