亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gfx_drawcontrol.c.svn-base

?? sigmadesign smp8623 gui source code ,bingo
?? SVN-BASE
?? 第 1 頁 / 共 5 頁
字號:
	return status;}static inline RMstatus GFXBlendAndScaleRectanglesProperty(struct RUA *pRua, struct GFXEngine_BlendAndScaleRectangles_type *blend_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_BlendAndScaleRectangles, blend_param,			sizeof(struct GFXEngine_BlendAndScaleRectangles_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxBlendAndScale: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXSCBlendRectangleProperty(struct RUA *pRua, struct GFXEngine_SingleColorBlendRectangles_type *scblend_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_SingleColorBlendRectangles, scblend_param,			sizeof(struct GFXEngine_SingleColorBlendRectangles_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxSCBlend: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}//static inline RMuint8 GetTextBufferIndex()//{////	RMuint8 temp = (g_textBufferIndex < MAX_STR_BUFFERS - 1 ? g_textBufferIndex + 1 : 0);//	g_textBufferIndex = temp;//	return g_textBufferIndex;//}static inline RMuint8 GetBitmapBufferIndex(RMbool whole){	RMuint8 temp;	if (whole)		temp = (g_bitmapBufferIndex == 0 ? 1 : 0);	else		temp = (g_bitmapBufferIndex < MAX_DRAWING_BUFFER_PARTS ? g_bitmapBufferIndex + 1 : 0);	g_bitmapBufferIndex = temp;	return g_bitmapBufferIndex;}//static RMbool GetAlternateIndex(//	RMuint8 index,//	RMuint8 *newindex,//	RMuint32 bmpsize)//{//	RMuint8 i, j;//	RMuint32 usedbuffer = 0;////	entry* np;//////	for(i = index - 1; i > 0; i--){//		usedbuffer += g_bitmaps[i].bmp.uiDataSize;//		if(CanReuseBuffer(usedbuffer, bmpsize)){//			ResetUsedBuffer(usedbuffer);//			// clear bmp buffers from here on since may not be first try//			for(j = i; j < MAX_BITMAPS; j++){//				RMMemset(&g_bitmaps[j], 0, sizeof(RMbitmapdata));//			}////			// return new index//			*newindex = i;//			return TRUE;//		}//	}////	return FALSE;//}static RMbool CompareTextPalette(struct GFXEngine_Palette_1BPP_type *pal){	if (g_last_palbpp != 1)		return FALSE;	if (g_lastpal.Palette[0] == pal->Palette[0] && g_lastpal.Palette[1] == pal->Palette[1])		return TRUE;	return FALSE;}// only check first 16 colors of 8bpp palettestatic RMbool CompareBitmapPalette(struct GFXEngine_Palette_8BPP_type *pal){	RMuint8 i;	if (g_last_palbpp != 8)		return FALSE;	for (i = 0; i < 16; i++)	{		if (g_lastpal.Palette[i] != pal->Palette[i])		{			return FALSE;		}	}	return TRUE;}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////RMstatus SetOutputSurface(struct RUA *pRua){	struct GFXEngine_ColorFormat_type format_param;	struct GFXEngine_Surface_type surface_param;	RMstatus status;	if (gdata.gfx == 0xff || gdata.osdAddr == 0)		return RM_ERROR;	format_param.SurfaceID = GFX_SURFACE_ID_NX;	format_param.MainMode = EMhwlibColorMode_TrueColor;	format_param.SubMode = EMhwlibColorFormat_32BPP;	status = GFXColorFormatProperty(pRua, &format_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting color format parameters\n"));	surface_param.StartAddress = gdata.osdAddr;	surface_param.TotalWidth = gdata.osdWidth;	surface_param.Tiled = FALSE;	surface_param.SurfaceID = GFX_SURFACE_ID_NX;	status = GFXSurfaceProperty(pRua, &surface_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting surface parameters\n"));	return status;}RMstatus SetOutputSurfaceBuffer(struct RUA *pRua, RMuint32 pAddress, RMuint32 width){	struct GFXEngine_ColorFormat_type format_param;	struct GFXEngine_Surface_type surface_param;	RMstatus status;	if (gdata.gfx == 0xff || gdata.osdAddr == 0)		return RM_ERROR;	format_param.SurfaceID = GFX_SURFACE_ID_NX;	format_param.MainMode = EMhwlibColorMode_TrueColor;	format_param.SubMode = EMhwlibColorFormat_32BPP;	status = GFXColorFormatProperty(pRua, &format_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting color format parameters\n"));	surface_param.StartAddress = pAddress;	surface_param.TotalWidth = width;	surface_param.Tiled = FALSE;	surface_param.SurfaceID = GFX_SURFACE_ID_NX;	status = GFXSurfaceProperty(pRua, &surface_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting surface parameters\n"));	return status;}RMstatus SetInputSurface(struct RUA *pRua, RMuint32 mode, RMuint32 startAddr, RMuint32 width, RMuint32 surfaceID){	struct GFXEngine_ColorFormat_type format_param;	struct GFXEngine_Surface_type surface_param;	RMstatus status;	if (gdata.gfx == 0xff)		return RM_ERROR;	format_param.SurfaceID = surfaceID;	format_param.MainMode = mode;	format_param.SubMode = EMhwlibColorFormat_32BPP;	status = GFXColorFormatProperty(pRua, &format_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting color format parameters\n"));	surface_param.StartAddress = startAddr;	surface_param.TotalWidth = width;	surface_param.Tiled = FALSE;	surface_param.SurfaceID = surfaceID;	status = GFXSurfaceProperty(pRua, &surface_param);	if (RMFAILED(status))		RMDBGLOG((GFXDBG, "Error setting surface parameters\n"));	return status;}RMstatus Fill(struct RUA *pRua, RMint32 x, RMint32 y, RMuint32 width, RMuint32 height, RMuint32 color){	struct GFXEngine_FillRectangle_type fill_param;	RMstatus status;	fill_param.X = x;	fill_param.Y = y;	fill_param.Width = width;	fill_param.Height = height;	fill_param.Color = color;	status = GFXFillRectangleProperty(pRua, &fill_param);	return status;}RMstatus SCBlendFill(struct RUA *pRua, RMint32 x, RMint32 y, RMuint32 width, RMuint32 height, RMuint32 color, RMuint8 bkgndindex){	struct GFXEngine_SingleColorBlendRectangles_type sc_blend_param;	RMstatus status;	RMuint32 saddr;	RMuint32 swidth;	if (gdata.osdOn == TRUE)	{ // no blending if not background for now!!!!!!!!!!!!!!!!!!!!!!!!!!!!		if (g_bitmaps[bkgndindex].pBmpAddr == 0 || bkgndindex != 0)			return Fill(pRua, x, y, width, height, color);		saddr = g_bitmaps[bkgndindex].pBmpAddr;		swidth = g_bitmaps[bkgndindex].bmp.uiWidth;	}	else	{		if (gdata.pictureMode && bkgndindex == 0)		{			saddr = gdata.backBuffer.baseAddr;			swidth = gdata.osdWidth;		}		else			return Fill(pRua, x, y, width, height, color);	}	//setup X	status = SetInputSurface(pRua, EMhwlibColorMode_TrueColor, saddr, swidth, GFX_SURFACE_ID_X);	if (RMFAILED(status))		return status;	sc_blend_param.SrcX = x;	sc_blend_param.SrcY = y;	sc_blend_param.DstX = x;	sc_blend_param.DstY = y;	sc_blend_param.Width = width;	sc_blend_param.Height = height;	sc_blend_param.Color = color;	sc_blend_param.SaturateAlpha = FALSE;	status = GFXSCBlendRectangleProperty(pRua, &sc_blend_param);	return status;}RMstatus RoundRect(struct RUA *pRua, RMint32 x, RMint32 y, RMuint32 width, RMuint32 height, RMuint32 color, RMbool blend,		RMuint8 bkgndindex){	RMstatus status = RM_OK;	if (blend == FALSE)	{		// middle area		//		status = Fill(pRua, x + 3, y + 3, width - 6, height - 6, color);		status = Fill(pRua, x, y, width, height, color);		if (RMFAILED(status))			return status;		//		// top		//		Fill(pRua, x + 2, y + 2, width - 4, 1, color);		//		Fill(pRua, x + 3, y + 1, width - 6, 1, color);		//		Fill(pRua, x + 5, y,  width - 10, 1, color);		//		//		// bottom		//		Fill(pRua, x + 2, y + height - 3,  width - 4, 1, color);		//		Fill(pRua, x + 3, y + height - 2,  width - 6, 1,  color);		//		Fill(pRua, x + 5, y + height - 1, width - 10, 1, color);		//		//		// left		//		Fill(pRua, x + 2, y + 2, 1, height - 4, color);		//		Fill(pRua, x + 1, y + 3,  1,  height - 6, color);		//		Fill(pRua, x, y + 5,  1,  height - 10, color);		//		//		// right		//		Fill(pRua, x + width - 3, y + 2,  1,  height - 4, color);		//		Fill(pRua, x + width - 2, y + 3,  1, height - 6, color);		//		Fill(pRua, x + width -1, y + 5,  1,  height - 10, color);	}	else	{		//status = SCBlendFill(pRua, x + 3, y + 3, width - 6, height - 6, color, bkgndindex);		status = SCBlendFill(pRua, x, y, width, height, color, bkgndindex);		if (RMFAILED(status))			return status;		//		// top		//		SCBlendFill(pRua, x + 2, y + 2, width - 4, 1, color, bkgndindex);		//		SCBlendFill(pRua, x + 3, y + 1, width - 6, 1, color, bkgndindex);		//		SCBlendFill(pRua, x + 5, y,  width - 10, 1, color, bkgndindex);		//		//		// bottom		//		SCBlendFill(pRua, x + 2, y + height - 3,  width - 4, 1, color, bkgndindex);		//		SCBlendFill(pRua, x + 3, y + height - 2,  width - 6, 1,  color, bkgndindex);		//		SCBlendFill(pRua, x + 5, y + height - 1, width - 10, 1, color, bkgndindex);		//		//		// left		//		SCBlendFill(pRua, x + 2, y + 2, 1, height - 4, color, bkgndindex);		//		SCBlendFill(pRua, x + 1, y + 3,  1,  height - 6, color, bkgndindex);		//		SCBlendFill(pRua, x, y + 5,  1,  height - 10, color, bkgndindex);		//		//		// right		//		SCBlendFill(pRua, x + width - 3, y + 2,  1,  height - 4, color, bkgndindex);		//		SCBlendFill(pRua, x + width - 2, y + 3,  1, height - 6, color, bkgndindex);		//		SCBlendFill(pRua, x + width -1, y + 5,  1,  height - 10, color, bkgndindex);	}	return status;}/* draw a outline of a given color*/RMstatus RectOutline(struct RUA *pRua, GFXLib_rect *rect, RMuint32 color, RMbool rounded, RMbool blend, RMuint8 bkgndindex){	if (rounded == 0)	{		if (blend == FALSE)		{			// top			Fill(pRua, rect->x, rect->y, rect->width, 2, color);			// bottom			Fill(pRua, rect->x, rect->y + rect->height - 2, rect->width, 2, color);			// left			Fill(pRua, rect->x, rect->y, 2, rect->height, color);			// right			Fill(pRua, rect->x + rect->width - 2, rect->y, 2, rect->height, color);		}		else		{			// top			SCBlendFill(pRua, rect->x, rect->y, rect->width, 2, color, bkgndindex);			// bottom			SCBlendFill(pRua, rect->x, rect->y + rect->height - 2, rect->width, 2, color, bkgndindex);			// left			SCBlendFill(pRua, rect->x, rect->y, 2, rect->height, color, bkgndindex);			// right			SCBlendFill(pRua, rect->x + rect->width - 2, rect->y, 2, rect->height, color, bkgndindex);		}		return RM_OK;	}	// draw rounded outline	if (blend == FALSE)	{		// top		Fill(pRua, rect->x + 5, rect->y, rect->width - 10, 1, color);		Fill(pRua, rect->x + 3, rect->y + 1, rect->width - 6, 1, color);		// bottom		Fill(pRua, rect->x + 5, rect->y + rect->height - 1, rect->width - 10, 1, color);		Fill(pRua, rect->x + 3, rect->y + rect->height - 2, rect->width - 6, 1, color);		// left		Fill(pRua, rect->x, rect->y + 5, 1, rect->height - 10, color);		Fill(pRua, rect->x + 1, rect->y + 3, 1, rect->height - 6, color);		// right		Fill(pRua, rect->x + rect->width - 1, rect->y + 5, 1, rect->height - 10, color);		Fill(pRua, rect->x + rect->width - 4, rect->y + rect->height - 4, 2, 2, color);		// upper left corner		Fill(pRua, rect->x + 2, rect->y + 2, 2, 2, color);		// lower left corner		Fill(pRua, rect->x + 2, rect->y + rect->height - 4, 2, 2, color);		// upper right corner		Fill(pRua, rect->x + rect->width - 4, rect->y + 2, 2, 2, color);		// lower right corner		Fill(pRua, rect->x + rect->width - 2, rect->y + 3, 1, rect->height - 6, color);	}	else	{		// top		SCBlendFill(pRua, rect->x + 5, rect->y, rect->width - 10, 1, color, bkgndindex);		SCBlendFill(pRua, rect->x + 3, rect->y + 1, rect->width - 6, 1, color, bkgndindex);		// bottom		SCBlendFill(pRua, rect->x + 5, rect->y + rect->height - 1, rect->width - 10, 1, color, bkgndindex);		SCBlendFill(pRua, rect->x + 3, rect->y + rect->height - 2, rect->width - 6, 1, color, bkgndindex);		// left		SCBlendFill(pRua, rect->x, rect->y + 5, 1, rect->height - 10, color, bkgndindex);		SCBlendFill(pRua, rect->x + 1, rect->y + 3, 1, rect->height - 6, color, bkgndindex);		// right		SCBlendFill(pRua, rect->x + rect->width - 1, rect->y + 5, 1, rect->height - 10, color, bkgndindex);		SCBlendFill(pRua, rect->x + rect->width - 4, rect->y + rect->height - 4, 2, 2, color, bkgndindex);		// upper left corner		SCBlendFill(pRua, rect->x + 2, rect->y + 2, 2, 2, color, bkgndindex);		// lower left corner		SCBlendFill(pRua, rect->x + 2, rect->y + rect->height - 4, 2, 2, color, bkgndindex);		// upper right corner		SCBlendFill(pRua, rect->x + rect->width - 4, rect->y + 2, 2, 2, color, bkgndindex);		// lower right corner		SCBlendFill(pRua, rect->x + rect->width - 2, rect->y + 3, 1, rect->height - 6, color, bkgndindex);	}	return RM_OK;}// only BMP, PNG, JPEG and GIF supportedRMstatus LoadImage(struct RUA *pRua, RMuint8 bmpindex, RMuint32 *bmpsize){	RMstatus status;	if (g_bitmaps[bmpindex].path == NULL)		return RM_ERROR;	if (isPng(g_bitmaps[bmpindex].path))	{		status = load_png(pRua, &g_bitmaps[bmpindex], bmpsize);	}	else if (isBitmap(g_bitmaps[bmpindex].path))	{		status = load_bitmap(pRua, &g_bitmaps[bmpindex], bmpsize);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美96一区二区免费视频| 日韩黄色在线观看| 久久人人97超碰com| 色哟哟一区二区| av网站免费线看精品| 欧美aaa在线| 亚洲国产精品嫩草影院| 一区二区久久久| 中文字幕中文在线不卡住| 久久婷婷综合激情| 精品少妇一区二区三区在线播放| 在线观看视频一区二区欧美日韩| 成人av在线一区二区| 成人高清免费观看| 99国产欧美另类久久久精品| 岛国精品在线播放| 成人av网址在线观看| 成人午夜精品一区二区三区| 成人综合婷婷国产精品久久蜜臀 | 亚洲三级在线观看| 欧美国产精品劲爆| ...xxx性欧美| 一区二区三区精品在线观看| 亚洲一区二区三区四区不卡| 亚洲va欧美va天堂v国产综合| 亚洲国产精品久久久久婷婷884| 一区二区高清免费观看影视大全| 亚洲一区精品在线| 另类小说一区二区三区| 国产激情视频一区二区在线观看| 国产美女精品在线| 91成人网在线| 欧美变态凌虐bdsm| 亚洲视频一区二区在线观看| 亚洲国产精品av| 亚洲免费伊人电影| 韩国av一区二区三区在线观看| 国产成人午夜精品影院观看视频 | 国产精品不卡一区| 日韩中文字幕av电影| 国产自产高清不卡| 91在线一区二区| 日韩午夜精品电影| 亚洲一区在线观看网站| 高潮精品一区videoshd| 欧美日本一区二区在线观看| 久久综合九色综合欧美亚洲| 亚洲精品写真福利| 久久精品国产999大香线蕉| 成人永久aaa| 日韩一区二区在线看片| 中文字幕亚洲综合久久菠萝蜜| 亚洲高清免费观看高清完整版在线观看| 亚洲国产另类av| 国产成a人亚洲| 欧美日韩大陆一区二区| 国产精品国产自产拍高清av| 综合av第一页| 国产丶欧美丶日本不卡视频| 成人免费高清在线| 精品少妇一区二区三区日产乱码 | 国产麻豆精品theporn| 91麻豆免费观看| 中文字幕不卡一区| 久久国产精品99精品国产 | 国产精品一级二级三级| 激情成人综合网| 在线观看中文字幕不卡| 国产精品色呦呦| 国产自产高清不卡| 日韩免费观看高清完整版| 首页亚洲欧美制服丝腿| 91在线porny国产在线看| 国产精品视频一二| 国产91精品露脸国语对白| 久久精品人人做人人综合| 国产一区二区久久| 精品对白一区国产伦| 激情综合色播激情啊| 日韩欧美资源站| 国模套图日韩精品一区二区| 欧美成人vps| 国产美女视频91| 国产精品国产三级国产aⅴ入口| 国产精品一二三区在线| 国产精品久久久久久久久免费樱桃 | 欧美日本视频在线| 日韩va欧美va亚洲va久久| 精品国产一区二区精华| 狠狠狠色丁香婷婷综合久久五月| 精品国产乱码久久久久久牛牛| 国产一区二区三区黄视频 | 国产精品久久国产精麻豆99网站| 91免费看片在线观看| 婷婷开心久久网| 久久久久久久久蜜桃| 在线看日本不卡| 六月丁香综合在线视频| 久久久久久久电影| 欧美性大战久久| 麻豆一区二区三区| 成人欧美一区二区三区| 91精品国产91久久久久久一区二区| 亚洲成a人在线观看| 日本一区二区视频在线| 欧美日韩精品一区二区天天拍小说| 亚洲午夜久久久久久久久电影院| 精品国产乱子伦一区| 91精品福利视频| 免费观看成人av| 亚洲一区在线观看免费| 国产精品视频免费| 欧美日韩三级在线| 97久久超碰国产精品电影| 精品一区二区三区免费| 调教+趴+乳夹+国产+精品| 国产精品成人免费在线| 日韩精品资源二区在线| 日本乱人伦一区| 99久久国产免费看| 日韩av中文字幕一区二区三区| 亚洲精品乱码久久久久久日本蜜臀| 日本一区二区免费在线观看视频 | 国产精品三级电影| 久久久久久久久蜜桃| 精品日产卡一卡二卡麻豆| 欧美一区二区网站| 91小视频免费观看| 成人黄色网址在线观看| 成人av在线一区二区| 99久久99久久综合| 91麻豆蜜桃一区二区三区| 国产精品18久久久久久vr| 国产综合一区二区| 国产一区二区三区免费在线观看| 久久狠狠亚洲综合| 国产美女在线精品| 99视频在线精品| 欧美亚洲愉拍一区二区| 欧美一区二区三区系列电影| 91麻豆精品国产91久久久资源速度| 6080国产精品一区二区| 精品国产伦一区二区三区观看体验 | av成人动漫在线观看| 国产一区二区三区免费| 亚洲精品一区二区三区四区高清| 国产天堂亚洲国产碰碰| 1024亚洲合集| 亚州成人在线电影| 国产一区久久久| 99麻豆久久久国产精品免费| 欧美色精品天天在线观看视频| 欧美肥妇free| 久久综合九色综合97_久久久| 亚洲品质自拍视频| 久久99日本精品| 91农村精品一区二区在线| 日韩欧美一区二区视频| 欧美国产综合一区二区| 午夜在线成人av| 国产综合久久久久久鬼色| 在线观看日韩高清av| 久久久久久久久久电影| 婷婷丁香激情综合| 首页国产欧美久久| av中文字幕不卡| 久久综合久久综合九色| 一区二区三区四区乱视频| 国产一区二区三区高清播放| 在线成人午夜影院| 亚洲综合色自拍一区| 国产成人激情av| 久久奇米777| 国产sm精品调教视频网站| 精品国产免费人成电影在线观看四季| 蜜臀av一区二区在线免费观看| 欧美高清你懂得| 久草这里只有精品视频| 久久久蜜桃精品| 成人h动漫精品| 午夜国产精品影院在线观看| 91精品国产高清一区二区三区| 精品一区二区三区在线观看 | 日韩美女视频一区二区在线观看| 蜜臀精品久久久久久蜜臀| 久久综合久久综合久久综合| 99久久久免费精品国产一区二区| 亚洲愉拍自拍另类高清精品| 精品视频一区二区不卡| 精品系列免费在线观看| 最新热久久免费视频| 制服丝袜在线91| 高清国产午夜精品久久久久久| 亚洲制服丝袜av| 国产午夜精品久久久久久免费视| 一本色道久久综合亚洲aⅴ蜜桃 | 日本一不卡视频| 中文字幕中文字幕一区| 欧美丰满一区二区免费视频| 国产高清精品久久久久|