Search results

  1. Crutch

    ThinkC [Study Group 2] - Events & Menu Management

    That code breaks because FrontWindow() is getting a bad result — possibly NULL? — while the app is suspended. (FrontWindow() can only ever return a pointer to a window in the foreground application.). The code is using FrontWindow() solely to get a portRect to scroll, so a bad result from...
  2. Crutch

    68k ScrnBase and its alternate screen address

    (Btw I think his comment that “only 13 registers were truly available” [since you can’t use the stack pointer] isn’t strictly accurate, Atkinson could have saved the stack pointer in some fixed memory location like ApplScratch, and stuffed a sentinel value into the BitMap to tell him when to...
  3. Crutch

    68k ScrnBase and its alternate screen address

    That’s a terrific article you linked there @YMK - thanks!
  4. Crutch

    68k ScrnBase and its alternate screen address

    Right all I’m saying is that writing a VBL that decrements a counter, then having your main loop check if the counter hits zero, is exactly equivalent to just having your main loop poll Ticks and do something every N times it increments. The Vertical Retrace manager updates Ticks at the same...
  5. Crutch

    68k ScrnBase and its alternate screen address

    Small comments: Right, DrawPicture will be much slower than CopyBits which is much slower than direct bit blitting. If you want to be fast, by far the best thing to do is to draw your picture in an offscreen bitmap somewhere, then just direct copy those bytes into screen (or altscreen)...
  6. Crutch

    68k ScrnBase and its alternate screen address

    Yep agree, I am assuming @Mu0n is emulating a 68000 but maybe not.
  7. Crutch

    68k ScrnBase and its alternate screen address

    This is probably not a difference between mini-vMac and a real Mac but rather a coincidence depending on whether the longword at memory location 0 is even or odd. From TN#7:
  8. Crutch

    68k ScrnBase and its alternate screen address

    (FYI - ScrnBase is declared as a Ptr which is just a char* so this isn’t necessary)
  9. Crutch

    68k ScrnBase and its alternate screen address

    (That’s why the Vanlandingham demo in the second MacTutor article I linked is a perfect use case. It draws a giant spinning beachball offscreen with QuickDraw, which is slow, then on the next retrace after that’s done, it switches the screen buffer, which is instant and saves a super-slow...
  10. Crutch

    68k ScrnBase and its alternate screen address

    Here’s a better article, but it’s in assembly. http://preserve.mactech.com/articles/mactech/Vol.02/02.06/VideoScreenAnim/index.html I am pretty sure you do need to relaunch with the request for the alt screen buffer as described here and in the other article. Otherwise you are asking the VIA...
  11. Crutch

    68k ScrnBase and its alternate screen address

    Cool! Can’t wait to see what you’re using this for. To sum up/slightly clarify, to use the alternate screen buffer, you need to do three things: _Launch yourself requesting the alternate screen buffer (I assume you are already doing this since you got your code working), by default it doesn’t...
  12. Crutch

    Archiving best practices and breaking the Seal?

    (Strictly speaking I would argue there is no reason to use StuffIt on single files like disk images in 2023 either. Just run MacBinary on it for fork aggregation and archive the .dsk.bin. StuffIt is awful with its many flavors and quietly incompatible variants.)
  13. Crutch

    Archiving best practices and breaking the Seal?

    No, what I wrote is always true and is independent of using StuffIt or not: MacBinary (.bin) combines resource fork, data fork, and Finder information in a single binary file suitable for upload to any modern service. BinHex (.hqx) does the same thing, but outputs an ASCII text file suitable...
  14. Crutch

    Archiving best practices and breaking the Seal?

    Sounds like a great find! One detail here, there is no reason to Binhex (.hqx) these images or indeed anything uploaded to preservation sites. The sole purpose of Binhex is to convert Mac files to modem- and tty-compatible ASCII, which blows up file sizes by 150% on average. Here, you just need...
  15. Crutch

    68k Anyone here using the Sprite Animation Toolkit?

    I played with that toolkit in the ‘90s, didn’t love using it but can’t recall why — I think I just found getting all the offscreen CopyBits’ing right to be part of the fun. This book is excellent by the way and covers animation among many, many other things...
  16. Crutch

    [High Score Challenge 01] Get the highest score for 1-3 of these games

    I had that game when it was new as a kid, and vaguely remember it being bundled with a joystick adapter of some kind - I think it may have been a throwaway game as part of a way to sell Mac joysticks? Anyway that may be wrong but I didn’t like it when I was 9 either. I don’t think a lot of love...
  17. Crutch

    Picture Documentation of 550c Internals (especially the logic board)?

    Well thanks for that correction! What’s funny is basically the entire Internet was wrong about this too … maybe everyone just copies Wikipedia (which was also wrong, until I fixed it just now…). Banzai is certainly a better code name than “bonsai” ….
  18. Crutch

    Picture Documentation of 550c Internals (especially the logic board)?

    I have both a 540c and 550c, and while I haven’t opened them up in a while, I recall the internals being basically identical. I don’t know why they wouldn’t be — they both have a 040 (LC or otherwise) at 33MHz and otherwise all the same features aside from the display. Btw I’m pretty sure the...
  19. Crutch

    System 7.1.2 68k = / = System 7.1.2p?

    The “P” series of 7.0 and 7.1 systems included various bits of fluff for Performa support (sorry … never a Performa fan!). There’s some relevant documentation here, though it doesn’t reference 7.1.2p specifically: https://support.apple.com/kb/TA28741?locale=en_US These people do have this to...
  20. Crutch

    Mac Plus Radius 020 accelerator causing checkerboard screen

    Yeah it for sure won’t work without the springs. I thought they both went to ground but no longer have mine. You could probably just try that …..