Add the logo window paint function and move some constants to addresses

Adds a C implementation for the logo windows paint function.