Project

General

Profile

Revision 106

fix error

View differences:

lab5/graphics.c
98 98
        return OUT_OF_RANGE;
99 99
    }
100 100
    unsigned int pos = (row + col * vbe_mem_info.XResolution) * get_bytes_pixel();
101
    memcpy((void*)(video_mem + pos), &color, get_bytes_pixel());
101
    memcpy((void*)((unsigned int)video_mem + pos), &color, get_bytes_pixel());
102 102
    return SUCCESS;
103 103
}
104 104

  

Also available in: Unified diff