
I would like to put that in Martin's Qlib8 and send this to him as QLib9, We should ensure, that QLiberator works on all platforms as it had up to now.
This sortof is how The Editor, for example, detects screen size. It's probably the only way to do it without PE, but creates quite a bit of flickering. From there and the bytes/scanline figure from a CDB, you can "guess" the color depth.EmmBee wrote:It is possible to find SCR_XLIM and SCR_YLIM in SuperBASIC by trying to find the maximum Window size possible - without it stopping with an error.
Fortunately, using QLiberator, such errors can be detected by using the Q_ERR_ON feature. Eg. try something like this ...Code: Select all
REMark Finding maximum x and y size possible before it gives an error 100 OPEN #9,CON_ : x = 510 : y = 255 110 Q_ERR_ON "WINDOW" 120 REPeat find_x : x = x+2 : WINDOW #9,x,y,0,0 : IF Q_ERR : x = x-2 : EXIT find_x 130 REPeat find_y : y = y+1 : WINDOW #9,x,y,0,0 : IF Q_ERR : y = y-1 : EXIT find_y 140 Q_ERR_OFF "WINDOW" 150 CLOSE #9 160 PRINT #0,"SCR_XLIM = "; x !! "SCR_YLIM = "; y 170 PAUSE -1
For what it's worth, Ralf, you would be very welcome to include my little extension in your QLiberator (modified or not) if you consider suitable and it meets your needs. Like the Display_Code they were taken from, these extensions are freeware and may be used without restriction in programs. Can be linked to compiled program with $$asmb=flp1_scrxlim_cde,0,10Ralf R. wrote:The best solution would be, if someone (or Dilwyn...)writes a little MC extension with two keywords using IOP.FLIM, so that can be put into QLiberator and then it is compatible with every system using a PE. As SCR_XLIM/SCR_YLIM is SMSQ/E specific, it is best to have them separate.
I think, the rest of the QL World (without PE) can stick with QLiberator as before.
Yes I do hope so. There must be a great many readers who are eagerly awaiting to see the source of QLiberator. How about it, Martin? Even if there are some problems with it, the source would be good to see. And we can all work together to make further progress and make suggestions of how to cure existing bugs, etc.JonS wrote:If the intention is to release the sources, surely it can be left up to individuals to add such changes if they require them?
The intension is to release publicly, when I am as happy as I can be that it is a good decompile, without any added problems.EmmBee wrote:There must be a great many readers who are eagerly awaiting to see the source of QLiberator. How about it, Martin? Even if there are some problems with it, the source would be good to see. And we can all work together to make further progress and make suggestions of how to cure existing bugs, etc.