listpix.c

来自「Nxlib,一个模拟xlib的程序。使用microwindows的库来运行需要x」· C语言 代码 · 共 18 行

C
18
字号
#include "nxlib.h"XPixmapFormatValues *XListPixmapFormats(Display *dpy, int *count){	XPixmapFormatValues *formats =		(XPixmapFormatValues *)Xmalloc(sizeof(XPixmapFormatValues));	if (formats) {		ScreenFormat *sf = dpy->pixmap_format;		formats->depth = sf->depth;		formats->bits_per_pixel = sf->bits_per_pixel;		formats->scanline_pad = sf->scanline_pad;		*count = 1;    	}	return formats;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?