Example #1
0
File: main.c Project: gnkarn/ucglib
void prepare_measure(ucg_t *ucg)
{
    ucg_SetMaxClipRange(ucg);
    ucg_SetColor(ucg, 0, 255, 160, 63);
    ucg_SetFont(ucg, ucg_font_6x12_tf);
    ucg_SetFontMode(ucg, UCG_FONT_MODE_TRANSPARENT);
}
Example #2
0
File: main.c Project: gnkarn/ucglib
void prepare_picture(ucg_t *ucg)
{
    tga_init(128,64);
    ucg_Init(ucg, &ucg_dev_tga, ucg_ext_none, (ucg_com_fnptr)0);
    ucg_SetFontMode(ucg, UCG_FONT_MODE_TRANSPARENT);
    ucg_SetMaxClipRange(ucg);
    ucg_SetColor(ucg, 0, 0, 0, 0);
    ucg_DrawBox(ucg, ox, 0, 128, 64);
}
Example #3
0
// Lua: ucg.setMaxClipRange( self )
static int lucg_setMaxClipRange( lua_State *L )
{
    lucg_userdata_t *lud;

    if ((lud = get_lud( L )) == NULL)
        return 0;

    ucg_SetMaxClipRange( LUCG );

    return 0;
}
Example #4
0
/* 
  Query the display dimension from the driver, reset clip window to maximum 
  new dimension
*/
void ucg_GetDimension(ucg_t *ucg)
{
  ucg->device_cb(ucg, UCG_MSG_GET_DIMENSION, &(ucg->dimension));
  ucg_SetMaxClipRange(ucg);
}