int GGI_t16_putpixel(struct ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis, x, y); *PIXEL_WADDR(vis, x, y) = col; return 0; }
int GGI_vgagl_putpixel(struct ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis, x, y); gl_setpixel(x, y, col); return 0; }
int GGI_t16_drawpixel(struct ggi_visual *vis, int x, int y) { CHECKXY(vis, x, y); *PIXEL_WADDR(vis, x, y) = LIBGGI_GC_FGCOLOR(vis); return 0; }
int GGI_vgagl_drawpixel(struct ggi_visual *vis, int x, int y) { CHECKXY(vis, x, y); gl_setpixel(x, y, LIBGGI_GC_FGCOLOR(vis)); return 0; }
int GGI_t32_putpixela(ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis,x,y); PREPARE_FB(vis); *PIXEL_WADDR(vis, x, y) = col; return 0; }
int GGI_t32_drawpixela(ggi_visual *vis, int x, int y) { CHECKXY(vis,x,y); PREPARE_FB(vis); *PIXEL_WADDR(vis, x, y) = LIBGGI_GC_FGCOLOR(vis); return 0; }
int GGI_lin32_putpixel(ggi_visual *vis,int x,int y,ggi_pixel col) { CHECKXY(vis,x,y); *((uint32_t *) ((uint8_t *)LIBGGI_CURWRITE(vis) + y*LIBGGI_FB_W_STRIDE(vis)+x*sizeof(uint32_t))) = col; return 0; }
int GGI_lin32_drawpixel(ggi_visual *vis,int x,int y) { CHECKXY(vis,x,y); *((uint32_t *) ((uint8_t *)LIBGGI_CURWRITE(vis) + y*LIBGGI_FB_W_STRIDE(vis)+x*sizeof(uint32_t))) = LIBGGI_GC_FGCOLOR(vis); return 0; }
int GGIputpixel(struct ggi_visual *vis,int x, int y, ggi_pixel color) { CHECKXY(vis,x,y); /* Supports only 8, 16, 32 bit modes -- impossible to pixel nonaligned */ memcpy(BANKFB + ((y * LIBGGI_FB_W_STRIDE(vis) + x) << LOGBYTPP), &color, (1 << LOGBYTPP)); return 0; }
int GGI_lin1r_putpixel(struct ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis, x, y); if (col & 1) { *PIXEL_WADDR(vis,x,y) |= (0x01 << (x & 7)); } else { *PIXEL_WADDR(vis,x,y) &= ~(0x01 << (x & 7)); } return 0; }
int GGI_lin1r_drawpixel(struct ggi_visual *vis, int x, int y) { CHECKXY(vis, x, y); if (LIBGGI_GC_FGCOLOR(vis) & 1) { *PIXEL_WADDR(vis,x,y) |= (0x01 << (x & 7)); } else { *PIXEL_WADDR(vis,x,y) &= ~(0x01 << (x & 7)); } return 0; }
int GGIdrawpixel(struct ggi_visual *vis,int x,int y) { /* This already clips right */ CHECKXY(vis,x,y); /* Supports only 8, 16, 32 bit modes -- impossible to pixel nonaligned */ memcpy(BANKFB + ((y * LIBGGI_FB_W_STRIDE(vis) + x) << LOGBYTPP), &LIBGGI_GC_FGCOLOR(vis), (1 << LOGBYTPP)); return 0; }
int GGI_stubs_putpixel(ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis, x, y); return LIBGGIPutPixelNC(vis, x, y, col); }
int GGI_stubs_putpixel(struct ggi_visual *vis, int x, int y, ggi_pixel col) { CHECKXY(vis, x, y); return _ggiPutPixelNC(vis, x, y, col); }
int GGI_tele_drawpixel(ggi_visual *vis, int x, int y) { CHECKXY(vis, x, y); return GGI_tele_putpixel_nc(vis, x, y, LIBGGI_GC_FGCOLOR(vis)); } /* GGI_tele_drawpixel */