예제 #1
0
파일: Canvas.hpp 프로젝트: StefanL74/XCSoar
 gcc_pure
 const HWColor map(const Color color) const
 {
   return HWColor(color);
 }
예제 #2
0
파일: Canvas.hpp 프로젝트: StefanL74/XCSoar
 gcc_pure
 HWColor GetPixel(PixelScalar x, PixelScalar y) const {
   return HWColor(::GetPixel(dc, x, y));
 }
예제 #3
0
파일: Canvas.hpp 프로젝트: macsux/XCSoar
 gcc_pure
 const HWColor map(const Color color) const
 {
   return HWColor(::SDL_MapRGB(surface->format, color.value.r,
                               color.value.g, color.value.b));
 }