#include "texture.hpp"
#include "texture_manager.hpp"
#include "obstack/obstackpp.hpp"
-#define LIGHTMAP_DIV 5
static inline int next_po2(int val)
{
renderer->draw_gradient(request);
break;
case TEXT:
- renderer->draw_text(request);
+ {
+ const TextRequest* textrequest = (TextRequest*) request.request_data;
+ textrequest->font->draw(renderer, textrequest->text, request.pos,
+ textrequest->alignment, request.drawing_effect, request.alpha);
+ }
break;
case FILLRECT:
renderer->draw_filled_rect(request);
lightmap->draw_gradient(request);
break;
case TEXT:
- lightmap->draw_text(request);
+ {
+ const TextRequest* textrequest = (TextRequest*) request.request_data;
+ textrequest->font->draw(renderer, textrequest->text, request.pos,
+ textrequest->alignment, request.drawing_effect, request.alpha);
+ }
break;
case FILLRECT:
lightmap->draw_filled_rect(request);