← All spotlightsSystem / Desktop

Spotlight › Desktop

Desktop wallpaper

The desktop can now be covered with a small picture repeated edge to edge, in colour or in black and white. Moving a window redraws only the strip of desktop it uncovers, just as the plain background did.

The Wallpaper page, VESA
Recorded in real time in QEMU on a modern Mac, VESA at 1024 by 768. Part of each redraw can be seen as it happens.
Built-in designs
6
Added to the kernel
55 bytes
Window drag on the XT
6–8% slower

01 / What it is

What it is

Windows 3.1 called it wallpaper and OS/2 a background bitmap: a small picture repeated in rows and columns behind every window, so the desktop is a pattern instead of a flat colour. os8088’s desktop had a grey dither, or a solid colour in the Color theme. It can now be one of six pictures, Bricks, Weave, Circuit, Floppies, Waves and Stone, or a picture of your own.

Each design is a 64 by 64 pixel tile in the 16 colours of an EGA or VGA card, plus a black-and-white version for CGA and Hercules screens, drawn for those screens rather than worked out from the colour one. Both come in one file of 2.3KB. The wallpaper changes only the desktop’s background: windows, menus and icons keep the look of the theme you chose.

Browse... on the Wallpaper page opens a PNG or JPEG picture and turns it into a tile, fitted to 64 pixels wide and reduced to the 16 colours, with its own black-and-white version. The picture becomes the wallpaper at once.

02 / On the screen

On the screen

The Wallpaper page, VGA
The wide Control Panel's Wallpaper page on VGA. The gallery shows None, Bricks, Weave, Circuit, Floppies, Waves and Stone, with Waves selected. The preview monitor shows the waves pattern. File information reads WAVES.WAL, 64 by 64, 16 colours, mono version included, 2.3K. Browse is enabled and Apply is greyed, and the waves tile shows at the desktop's edges.
The gallery, a preview, and the file’s size and contents. QEMU, VGA.
Waves, VESA 1024 by 768
A 1024 by 768 desktop covered in the blue Waves wallpaper, with the A and B drive icons on the right and two Disk windows over it: drive B as a list of APPS, GAMES, MEDIA and SYSTEM, and drive A as icons.
Windows and icons draw over the picture as they do over the plain desktop. QEMU, VESA.
A photograph as wallpaper, VGA
The VGA desktop covered in a wallpaper made from a photograph: a sunflower on green leaves repeated edge to edge, with the A and B icons over it.
A JPEG photograph of a sunflower, chosen with Browse... and turned into a tile. QEMU, VGA.
Black and white, CGA
The compact Control Panel on a black-and-white CGA screen, on its Wallpaper page. Bricks is chosen from None, Bricks and Weave; Circuit, Floppies, Waves and Stone are greyed because the 360KB system disk does not carry them. The preview and the whole desktop show the bricks in black and white.
The bricks’ own black-and-white version, on the 360KB system disk. MartyPC, an IBM PC with CGA.

03 / How it works

How it works

os8088 never repaints the whole screen when a window moves. It works out the exact rectangles of desktop that the move uncovered and draws only those. The wallpaper is drawn by the same single routine that drew the plain background, given the same rectangles. So it covers the same pixels, in the same number of drawing calls; only the cost of each pixel changes.

Each pixel’s place in the tile comes from its position on the whole desktop, not on the screen. A strip drawn after a window moves lines up with the picture around it, and on two screens the pattern carries on across the join.

The drawing code is not part of the resident system. It is a file on the system disk, read in when a wallpaper is chosen and kept while one is shown. Choosing None frees it. For VGA it was rewritten once, after the first version made the background 17 times slower to draw than the dither: it now prepares each row of the tile once and repeats it, four colour planes at a time.

The colours are chosen once, on the build machine, for the six designs, and once by the importer for your own picture. Nothing about the picture is worked out again while the desktop is drawn.

04 / What it costs

What it costs

Measured on MartyPC’s emulated IBM PC and XT at 4.77 MHz.

WhatPlain backgroundWallpaper
Drawing one 64 by 64 square of desktop, VGA3.7 ms11.6 ms
The same, CGA6.3 ms17.3 ms
The same, Hercules6.0 ms17.2 ms
Dragging a window over the desktop, CGA496 ms526 ms
Dragging a window over the desktop, Hercules518 ms561 ms

The kernel grew by 55 bytes. The drawing code takes about 8KB while a wallpaper is shown, and nothing otherwise. Turning an 80KB, 640 by 480 JPEG into a wallpaper takes 33 seconds on the XT.

05 / What it does not do

What it does not do

One small tile, repeated. A picture is not stretched or centred over the whole screen; it is fitted to a tile 64 pixels wide and repeated.

A flash when a full-screen program ends. Under a wallpaper, a drive icon that a window half covered is drawn a moment after the picture behind it, which shows as a short flicker on the 4.77 MHz machine.

Not on every disk. The 360KB system disk carries Bricks and Weave; the other four designs and the picture importer are on the 360KB utility disk. The 128KB system has no wallpaper.

06 / Choose one

Choose a wallpaper

  1. Boot any os8088 system disk except the 128KB one, with the system disk in drive A.

  2. Click the menu at the left end of the menu bar, choose Control Panel and open the Wallpaper page.

  3. Click a design and press Apply, or pick it from the list on the compact panel. To use a picture of your own, press Browse... and open a PNG or JPEG file.

  4. Close the panel to keep the choice for the next start. Choose None to go back to the plain desktop.