Files
izapple2/screen
Iván Izaguirre 66b5cac559 Show the drives a file can be dropped on
A file dropped on the window went to drive 1 or drive 2 depending on the
half it landed on. There was no way to know beforehand which drive was
which or what each one had inserted, and no sign afterwards of where the
file went. The machines with two Disk II cards have four drives and only
the first two could be reached.

F8 now shows a screen with one area per removable media drive, each with
the name of its drive and the image it has inserted, or EMPTY, and the
same screen appears for a moment after a drop with the drive that got the
file marked. It is a text screen of 80 columns rendered the same way the
help is, so SnapshotMessageGenerator takes the number of columns now.

The drives register with a label and tell the media they have, so the
frontends ask the machine with GetRemovableMediaDrives instead of assuming
two. The name of the media is written by the emulation goroutine and read
by the frontends, hence the atomic access.

The new frontend/shared package holds what the frontends have in common
and the emulator library has no place for: the composition of the screen
and the mapping from a position to a drive.

a2sdl reads the position of the pointer on the desktop when the file is
dropped. The mouse motion events do not arrive while another application
drags a file, so the last known position was stale and the file could land
on the wrong drive.

a2sdl3 shows the areas while the file is being dragged over the window,
which is something only SDL3 reports.

a2ebiten had no drag and drop at all, although the help it shows said
otherwise. Ebitengine hides the paths of the files dropped, but it opens
the real files and the handle tells the path back, so the images are
loaded like on every other frontend, compressed files included.
2026-08-10 21:56:40 +02:00
..
2026-02-28 18:10:48 +01:00
2026-02-28 18:10:48 +01:00
2026-02-28 18:10:48 +01:00
2024-09-09 21:39:22 +02:00
2026-02-28 18:10:48 +01:00
2022-02-21 23:05:53 +01:00
2026-02-28 18:10:48 +01:00
2026-02-28 18:10:48 +01:00
2026-02-28 18:10:48 +01:00