Lines Matching refs:dstrect
320 static Sint32 unifont_draw_glyph(Uint32 codepoint, int rendererID, SDL_Rect *dstrect) in unifont_draw_glyph() argument
340 SDL_RenderCopy(state->renderers[rendererID], texture, &srcrect, dstrect); in unifont_draw_glyph()
496 SDL_Rect dstrect; in _Redraw()
498 dstrect.x = textRect.x; in _Redraw()
499 dstrect.y = textRect.y + (textRect.h - 16 * UNIFONT_DRAW_SCALE) / 2; in _Redraw()
500 dstrect.w = 16 * UNIFONT_DRAW_SCALE; in _Redraw()
501 dstrect.h = 16 * UNIFONT_DRAW_SCALE; in _Redraw()
502 drawnTextRect.y = dstrect.y; in _Redraw()
503 drawnTextRect.h = dstrect.h; in _Redraw()
507 … Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE; in _Redraw()
508 dstrect.x += advance; in _Redraw()
573 SDL_Rect dstrect; in _Redraw()
575 dstrect.x = drawnTextRect.x; in _Redraw()
576 dstrect.y = textRect.y + (textRect.h - 16 * UNIFONT_DRAW_SCALE) / 2; in _Redraw()
577 dstrect.w = 16 * UNIFONT_DRAW_SCALE; in _Redraw()
578 dstrect.h = 16 * UNIFONT_DRAW_SCALE; in _Redraw()
579 drawnTextRect.y = dstrect.y; in _Redraw()
580 drawnTextRect.h = dstrect.h; in _Redraw()
584 … Sint32 advance = unifont_draw_glyph(codepoint, rendererID, &dstrect) * UNIFONT_DRAW_SCALE; in _Redraw()
585 dstrect.x += advance; in _Redraw()