Skip to content

getting compilation error in ugui. c file #1

@ravindern

Description

@ravindern

filename: ugui.c
line number: 5291
API: _UG_PutChar

void _UG_PutChar( char chr, UG_S16 x, UG_S16 y, UG_COLOR fc, UG_COLOR bc, const UG_FONT* font)
{


/* Is hardware acceleration available? /
if ( gui->driver[DRIVER_FILL_AREA].state & DRIVER_ENABLED )
{
void(push_pixel)(UG_COLOR);
//(void(
)(UG_COLOR))
push_pixel = ((void
(*)(UG_S16, UG_S16, UG_S16, UG_S16))gui->driver[DRIVER_FILL_AREA].driver)(x,y,x+actual_char_width-1,y+font->char_height-1);

  if (font->font_type == FONT_TYPE_1BPP)
  {

}

i am getting below error at the at this code ( push_pixel = ((void*(*)(UG_S16, UG_S16, UG_S16, UG_S16))gui->driver[DRIVER_FILL_AREA].driver)(x,y,x+actual_char_width-1,y+font->char_height-1);)

Could you please assist me?

Error[Pe513]: a value of type "void " cannot be assigned to an entity of type "void ()(UG_U16)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions