Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.
/ ba-title-bar Public archive

"Bad Apple" video player on Windows 10 title bars

License

Notifications You must be signed in to change notification settings

rszyma/ba-title-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding diary for the interested + some Windows10 facts:

  • I wanted to use pygame, but it natively doesn't allow multiple windows plus doesn't allow UTF-8 characters in captions
  • I tried cocos too but it is overcomplicated for the task TBH
  • pyglet could run multiple windows and render UTF-8 in title bar, but it (or underlying opengl) has a bug (or rather a feature?) that removes the new windows above 12 of them (I needed 36). So I tried running the windows in different processes with multiprocessing module and multiprocessing's build IPC, and it has finally worked. Though shit likes to consume the CPU.
  • default Windows 10 (Segoe UI) font isn't monospaced but I could emulate it using different width UTF-8 space characters
  • about 320 characters seems to be rendering limit for Windows titlebars (because of this bug, the whole thing took me 3x more time than it should have)

About

"Bad Apple" video player on Windows 10 title bars

Topics

Resources

License

Stars

Watchers

Forks

Languages