Exemplo n.º 1
0
static void gl_render_msg(void *data, const char *msg, void *parms)
{
   (void)data;
   float x, y, scale;
   unsigned color;
   font_params_t *params = (font_params_t*)parms;

   if (params)
   {
      x = params->x;
      y = params->y;
      scale = params->scale;
      color = params->color;
   }
   else
   {
      x = g_settings.video.msg_pos_x;
      y = 0.90f;
      scale = 1.04f;
      color = SILVER;
   }

   DbgFontPrint(x, y, scale, color, msg);

   if (!params)
      DbgFontPrint(x, y, scale - 0.01f, WHITE, msg);

#ifdef SN_TARGET_PSP2
   /* FIXME - if we ever get around to this port, move this out to some better place */
   sceDbgFontFlush();
#endif
}
Exemplo n.º 2
0
static void gl_render_msg(void *data, const char *msg, void *parms)
{
   (void)data;
   float x, y, scale;
   unsigned color;
   font_params_t *params = (font_params_t*)parms;

   if (params)
   {
      x = params->x;
      y = params->y;
      scale = params->scale;
      color = params->color;
   }
   else
   {
      x = g_settings.video.msg_pos_x;
      y = 0.76f;
      scale = 1.04f;
      color = SILVER;
   }

   DbgFontPrint(x, y, scale, color, msg);

   if (!params)
      DbgFontPrint(x, y, scale - 0.01f, WHITE, msg);

   DbgFontDraw();
}
Exemplo n.º 3
0
static void libdbg_font_render_msg(void *data, const char *msg,
      const void *userdata)
{
   float x, y, scale;
   unsigned color;
   settings_t *settings = config_get_ptr();
   const struct font_params *params = (const struct font_params*)userdata;

   (void)data;

   if (params)
   {
      x     = params->x;
      y     = params->y;
      scale = params->scale;
      color = params->color;
   }
   else
   {
      x     = settings->video.msg_pos_x;
      y     = 0.90f;
      scale = 1.04f;
      color = SILVER;
   }

   DbgFontPrint(x, y, scale, color, msg);

   if (!params)
      DbgFontPrint(x, y, scale - 0.01f, WHITE, msg);

#ifdef SN_TARGET_PSP2
   /* FIXME - if we ever get around to this port, 
    * move this out to some better place */
   sceDbgFontFlush();
#endif
}