pad: let FB_VAL() be a placeholder for optimized versions of fb_val()
commit820186c473445c7597c4d90f4da89bda852696ab
authorAli Gholami Rudi <ali@rudi.ir>
Sat, 16 Apr 2011 16:11:54 +0000 (16 20:41 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Sat, 16 Apr 2011 16:11:54 +0000 (16 20:41 +0430)
treeefdd0a7fbc52aab84776be312513e6e59db5883d
parentee1b2197f110bc84f61319bfc28af30915ccb4b1
pad: let FB_VAL() be a placeholder for optimized versions of fb_val()

This could be used to speed up fb_val() calls; doesn't matter much
for fbpad since glyphs are cached but for other framebuffer tools
that use draw.c this can be a real improvement.  See fb_val() function
to see how FB_VAL() should be implemented.  For instance, for a 32-bit
rgb framebuffer we can write:
  #define FB_VAL(r, g, b) (((r) << 16) | ((g) << 8) | (b))
config.h
pad.c