Lines Matching refs:surface
279 const GRSurface* surface) { in ValidateGraphicSurface() argument
280 if (!surface) { in ValidateGraphicSurface()
285 if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) { in ValidateGraphicSurface()
287 surface->pixel_bytes, surface->width, surface->row_bytes); in ValidateGraphicSurface()
291 if (surface->width > max_width || surface->height > max_height - y) { in ValidateGraphicSurface()
295 surface->width, surface->height, max_width, max_height, y); in ValidateGraphicSurface()
608 void ScreenRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, in DrawSurface() argument
610 gr_blit(surface, sx, sy, w, h, dx, dy); in DrawSurface()
626 void ScreenRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon()
627 gr_texticon(x, y, surface); in DrawTextIcon()
814 GRSurface* surface; in LoadBitmap() local
815 if (auto result = res_create_display_surface(filename.c_str(), &surface); result < 0) { in LoadBitmap()
819 return std::unique_ptr<GRSurface>(surface); in LoadBitmap()
823 GRSurface* surface; in LoadLocalizedBitmap() local
824 auto result = res_create_localized_alpha_surface(filename.c_str(), locale_.c_str(), &surface); in LoadLocalizedBitmap()
826 return std::unique_ptr<GRSurface>(surface); in LoadLocalizedBitmap()
832 result = res_create_localized_alpha_surface(filename.c_str(), DEFAULT_LOCALE, &surface); in LoadLocalizedBitmap()
834 return std::unique_ptr<GRSurface>(surface); in LoadLocalizedBitmap()