@Minuous
AWin is a one unmaintainable spaghetti code. It certainly isn't modular, so you'd need to separate all the blitting code from it, which again would mean rewriting large parts of the code.
While AWin contains some rather advanced and fast code, it surely isn't good programming example. Sorry. :-)