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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdl_sysvideo.cc

?? Simple DirectMedia Layer - Simple DirectMedia Layer 是一個跨平臺的多媒體庫設計用來提供快速圖形framebuffer和音頻驅動。應用MPEG為軟件
?? CC
?? 第 1 頁 / 共 2 頁
字號:
/*    SDL - Simple DirectMedia Layer    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Library General Public License for more details.    You should have received a copy of the GNU Library General Public    License along with this library; if not, write to the Free    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Sam Lantinga    slouken@libsdl.org*/#ifdef SAVE_RCSIDstatic char rcsid = "@(#) $Id: SDL_sysvideo.cc,v 1.7 2002/03/06 11:23:03 slouken Exp $";#endif/* BWindow based framebuffer implementation */#include <stdlib.h>#include <string.h>#include <stdio.h>#include <unistd.h>#include "SDL.h"#include "SDL_BeApp.h"#include "SDL_BWin.h"#include "SDL_timer.h"#include "blank_cursor.h"extern "C" {#include "SDL_sysvideo.h"#include "SDL_sysmouse_c.h"#include "SDL_sysevents_c.h"#include "SDL_events_c.h"#include "SDL_syswm_c.h"#include "SDL_lowvideo.h"#define BEOS_HIDDEN_SIZE	32	/* starting hidden window size *//* Initialization/Query functions */static int BE_VideoInit(_THIS, SDL_PixelFormat *vformat);static SDL_Rect **BE_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags);static SDL_Surface *BE_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);static void BE_UpdateMouse(_THIS);static int BE_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);static void BE_VideoQuit(_THIS);/* Hardware surface functions */static int BE_AllocHWSurface(_THIS, SDL_Surface *surface);static int BE_LockHWSurface(_THIS, SDL_Surface *surface);static void BE_UnlockHWSurface(_THIS, SDL_Surface *surface);static void BE_FreeHWSurface(_THIS, SDL_Surface *surface);static int BE_ToggleFullScreen(_THIS, int fullscreen);/* OpenGL functions */#ifdef HAVE_OPENGLstatic void BE_GL_SwapBuffers(_THIS);#endif/* FB driver bootstrap functions */static int BE_Available(void){	return(1);}static void BE_DeleteDevice(SDL_VideoDevice *device){	free(device->hidden);	free(device);}static SDL_VideoDevice *BE_CreateDevice(int devindex){	SDL_VideoDevice *device;	/* Initialize all variables that we clean on shutdown */	device = (SDL_VideoDevice *)malloc(sizeof(SDL_VideoDevice));	if ( device ) {		memset(device, 0, (sizeof *device));		device->hidden = (struct SDL_PrivateVideoData *)				malloc((sizeof *device->hidden));	}	if ( (device == NULL) || (device->hidden == NULL) ) {		SDL_OutOfMemory();		if ( device ) {			free(device);		}		return(0);	}	memset(device->hidden, 0, (sizeof *device->hidden));	/* Set the function pointers */	device->VideoInit = BE_VideoInit;	device->ListModes = BE_ListModes;	device->SetVideoMode = BE_SetVideoMode;	device->UpdateMouse = BE_UpdateMouse;	device->SetColors = BE_SetColors;	device->UpdateRects = NULL;	device->VideoQuit = BE_VideoQuit;	device->AllocHWSurface = BE_AllocHWSurface;	device->CheckHWBlit = NULL;	device->FillHWRect = NULL;	device->SetHWColorKey = NULL;	device->SetHWAlpha = NULL;	device->LockHWSurface = BE_LockHWSurface;	device->UnlockHWSurface = BE_UnlockHWSurface;	device->FlipHWSurface = NULL;	device->FreeHWSurface = BE_FreeHWSurface;#ifdef HAVE_OPENGL	device->GL_SwapBuffers = BE_GL_SwapBuffers;#endif	device->SetIcon = NULL;	device->SetCaption = BE_SetWMCaption;	device->GetWMInfo = NULL;	device->FreeWMCursor = BE_FreeWMCursor;	device->CreateWMCursor = BE_CreateWMCursor;	device->ShowWMCursor = BE_ShowWMCursor;	device->WarpWMCursor = BE_WarpWMCursor;	device->InitOSKeymap = BE_InitOSKeymap;	device->PumpEvents = BE_PumpEvents;	device->free = BE_DeleteDevice;	device->ToggleFullScreen = BE_ToggleFullScreen;	/* Set the driver flags */	device->handles_any_size = 1;		return device;}VideoBootStrap BWINDOW_bootstrap = {	"bwindow", "BDirectWindow graphics",	BE_Available, BE_CreateDevice};static inline int ColorSpaceToBitsPerPixel(uint32 colorspace){	int bitsperpixel;	bitsperpixel = 0;	switch (colorspace) {	    case B_CMAP8:		bitsperpixel = 8;		break;	    case B_RGB15:	    case B_RGBA15:	    case B_RGB15_BIG:	    case B_RGBA15_BIG:		bitsperpixel = 15;		break;	    case B_RGB16:	    case B_RGB16_BIG:		bitsperpixel = 16;		break;	    case B_RGB32:	    case B_RGBA32:	    case B_RGB32_BIG:	    case B_RGBA32_BIG:		bitsperpixel = 32;		break;	    default:		break;	}	return(bitsperpixel);}/* Function to sort the display_list in bscreen */static int CompareModes(const void *A, const void *B){	const display_mode *a = (display_mode *)A;	const display_mode *b = (display_mode *)B;	if ( a->space == b->space ) {		return((b->virtual_width*b->virtual_height)-		       (a->virtual_width*a->virtual_height));	} else {		return(ColorSpaceToBitsPerPixel(b->space)-		       ColorSpaceToBitsPerPixel(a->space));	}}/* Yes, this isn't the fastest it could be, but it works nicely */static int BE_AddMode(_THIS, int index, unsigned int w, unsigned int h){	SDL_Rect *mode;	int i;	int next_mode;	/* Check to see if we already have this mode */	if ( SDL_nummodes[index] > 0 ) {		for ( i=SDL_nummodes[index]-1; i >= 0; --i ) {			mode = SDL_modelist[index][i];			if ( (mode->w == w) && (mode->h == h) ) {#ifdef BWINDOW_DEBUG				fprintf(stderr, "We already have mode %dx%d at %d bytes per pixel\n", w, h, index+1);#endif				return(0);			}		}	}	/* Set up the new video mode rectangle */	mode = (SDL_Rect *)malloc(sizeof *mode);	if ( mode == NULL ) {		SDL_OutOfMemory();		return(-1);	}	mode->x = 0;	mode->y = 0;	mode->w = w;	mode->h = h;#ifdef BWINDOW_DEBUG	fprintf(stderr, "Adding mode %dx%d at %d bytes per pixel\n", w, h, index+1);#endif	/* Allocate the new list of modes, and fill in the new mode */	next_mode = SDL_nummodes[index];	SDL_modelist[index] = (SDL_Rect **)	       realloc(SDL_modelist[index], (1+next_mode+1)*sizeof(SDL_Rect *));	if ( SDL_modelist[index] == NULL ) {		SDL_OutOfMemory();		SDL_nummodes[index] = 0;		free(mode);		return(-1);	}	SDL_modelist[index][next_mode] = mode;	SDL_modelist[index][next_mode+1] = NULL;	SDL_nummodes[index]++;	return(0);}int BE_VideoInit(_THIS, SDL_PixelFormat *vformat){	display_mode *modes;	uint32 i, nmodes;	int bpp;	BRect bounds;	/* Initialize the Be Application for appserver interaction */	if ( SDL_InitBeApp() < 0 ) {		return(-1);	}	/* It is important that this be created after SDL_InitBeApp() */	BScreen bscreen;	/* Save the current display mode */	bscreen.GetMode(&saved_mode);	/* Determine the screen depth */	vformat->BitsPerPixel = ColorSpaceToBitsPerPixel(bscreen.ColorSpace());	if ( vformat->BitsPerPixel == 0 ) {		SDL_SetError("Unknown BScreen colorspace: 0x%x",						bscreen.ColorSpace());		return(-1);	}	/* Get the video modes we can switch to in fullscreen mode */	bscreen.GetModeList(&modes, &nmodes);	qsort(modes, nmodes, sizeof *modes, CompareModes);	for ( i=0; i<nmodes; ++i ) {		bpp = ColorSpaceToBitsPerPixel(modes[i].space);		//if ( bpp != 0 ) { // There are bugs in changing colorspace		if ( modes[i].space == saved_mode.space ) {			BE_AddMode(_this, ((bpp+7)/8)-1,				modes[i].virtual_width,				modes[i].virtual_height);		}	}	/* Create the window and view */	bounds.top = 0; bounds.left = 0;	bounds.right = BEOS_HIDDEN_SIZE;	bounds.bottom = BEOS_HIDDEN_SIZE;	SDL_Win = new SDL_BWin(bounds);	/* Create the clear cursor */	SDL_BlankCursor = BE_CreateWMCursor(_this, blank_cdata, blank_cmask,			BLANK_CWIDTH, BLANK_CHEIGHT, BLANK_CHOTX, BLANK_CHOTY);	/* Fill in some window manager capabilities */	_this->info.wm_available = 1;	/* We're done! */	return(0);}/* We support any dimension at our bit-depth */SDL_Rect **BE_ListModes(_THIS, SDL_PixelFormat *format, Uint32 flags){	SDL_Rect **modes;	modes = ((SDL_Rect **)0);	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {		modes = SDL_modelist[((format->BitsPerPixel+7)/8)-1];	} else {		if ( format->BitsPerPixel ==			_this->screen->format->BitsPerPixel ) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费观看高清完整版在线观看| 在线精品视频免费播放| 欧美mv日韩mv亚洲| 久草在线在线精品观看| 日韩欧美电影一区| 久久99精品久久只有精品| www一区二区| 成人高清免费观看| 亚洲美女偷拍久久| 欧美日韩国产高清一区二区| 日本麻豆一区二区三区视频| 日韩欧美精品在线视频| 成人午夜av影视| 亚洲视频在线一区二区| 欧美日韩精品综合在线| 麻豆精品精品国产自在97香蕉| 国产欧美精品一区aⅴ影院| 91丨porny丨蝌蚪视频| 五月综合激情婷婷六月色窝| 欧美tk丨vk视频| kk眼镜猥琐国模调教系列一区二区| 亚洲品质自拍视频网站| 91精品国产91久久久久久最新毛片 | 亚洲福利一二三区| 欧美不卡一区二区三区四区| 国产v综合v亚洲欧| 国产精品中文有码| 91精品国产综合久久久蜜臀粉嫩 | 蜜臀久久99精品久久久久宅男| 国产夜色精品一区二区av| 91蜜桃免费观看视频| 美国毛片一区二区三区| 中文字幕字幕中文在线中不卡视频| 欧美精品成人一区二区三区四区| 国产激情一区二区三区桃花岛亚洲| 亚洲乱码国产乱码精品精98午夜 | 欧美在线一二三四区| 乱中年女人伦av一区二区| 国产精品蜜臀av| 日韩一区二区麻豆国产| 一本大道久久精品懂色aⅴ| 麻豆91小视频| 亚洲五月六月丁香激情| 国产亚洲欧美一区在线观看| 欧美高清视频在线高清观看mv色露露十八| 国产毛片精品国产一区二区三区| 亚洲国产精品嫩草影院| 国产精品美女久久久久高潮| 日韩午夜精品视频| 欧美日韩在线综合| 91在线观看一区二区| 美女高潮久久久| 亚洲国产精品自拍| 综合婷婷亚洲小说| 国产欧美日韩综合| 精品精品国产高清一毛片一天堂| 欧美日产在线观看| 色综合中文综合网| 午夜国产精品一区| 一区二区三区视频在线观看| 国产网红主播福利一区二区| 欧美一区二区精品在线| 欧美影院一区二区三区| 99久久精品免费| 国产成a人亚洲精| 国产一区日韩二区欧美三区| 日本成人在线网站| 天堂成人国产精品一区| 亚洲精品欧美二区三区中文字幕| 国产精品久久久久久久久免费丝袜 | 亚洲另类春色国产| 亚洲欧美在线观看| 综合色中文字幕| ㊣最新国产の精品bt伙计久久| 中文字幕欧美区| 国产亚洲一区二区三区四区 | 天堂精品中文字幕在线| 亚洲一区二区三区四区在线免费观看 | 亚洲国产另类av| 亚洲一区二区三区四区不卡| 一区二区在线观看免费| 亚洲欧美一区二区三区孕妇| 中文字幕一区在线观看| 最新高清无码专区| 一区二区三区四区亚洲| 亚洲另类一区二区| 性感美女久久精品| 亚洲成人av中文| 日韩高清国产一区在线| 蜜臀久久99精品久久久久宅男| 免费高清成人在线| 久久精品国产99国产| 久久99久久99精品免视看婷婷| 久久99精品国产.久久久久久| 国产在线一区二区| 成人精品在线视频观看| 97久久精品人人爽人人爽蜜臀| av中文字幕亚洲| 欧美视频精品在线观看| 日韩欧美色综合| 国产清纯美女被跳蛋高潮一区二区久久w| 久久亚洲精品国产精品紫薇| 国产精品欧美久久久久无广告 | 一区二区在线观看免费视频播放| 亚洲大片精品永久免费| 乱一区二区av| 不卡一区二区三区四区| 欧美日韩在线亚洲一区蜜芽| 日韩欧美国产三级电影视频| 欧美激情在线一区二区| 一片黄亚洲嫩模| 精彩视频一区二区| 91婷婷韩国欧美一区二区| 欧美人牲a欧美精品| 精品粉嫩aⅴ一区二区三区四区| 中文字幕乱码日本亚洲一区二区| 亚洲自拍偷拍麻豆| 久久99久久精品| 一本久久精品一区二区| 欧美va亚洲va在线观看蝴蝶网| 中文字幕视频一区二区三区久| 日本不卡视频一二三区| 国产亚洲成av人在线观看导航| 51精品国自产在线| 国产精品每日更新在线播放网址| 亚洲国产一区视频| 高清日韩电视剧大全免费| 欧美色视频一区| 国产精品色哟哟网站| 日韩av不卡一区二区| 成人精品电影在线观看| 91精品国产综合久久精品app| 久久先锋影音av鲁色资源网| 亚洲一区精品在线| 国产成人av电影在线观看| 欧美日韩国产精品自在自线| 国产精品视频一区二区三区不卡| 日韩和欧美一区二区| 91在线一区二区三区| 精品国产免费一区二区三区香蕉| 亚洲精品久久7777| 国产91精品一区二区麻豆亚洲| 欧美一区二区三区性视频| **欧美大码日韩| 国产福利精品导航| 日韩天堂在线观看| 一区二区三区蜜桃| av一区二区三区四区| 久久久电影一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅| 色吧成人激情小说| 国产精品久久久久影视| 国产尤物一区二区| 日韩一区二区三区四区| 一区二区三区久久| 色8久久人人97超碰香蕉987| 国产亲近乱来精品视频| 国产一区二区三区黄视频| 正在播放亚洲一区| 无码av免费一区二区三区试看 | 国产精品免费观看视频| 国产一区二区在线观看视频| 日韩欧美一级二级| 美女高潮久久久| 日韩视频一区二区| 奇米色一区二区三区四区| 69堂成人精品免费视频| 日韩国产欧美三级| 欧美一区二区三区在线视频| 日韩av一区二| 欧美一级片在线看| 麻豆成人在线观看| 欧美精品一区二区精品网| 极品瑜伽女神91| 久久一日本道色综合| 国产乱理伦片在线观看夜一区| 久久影院视频免费| 精品福利一区二区三区免费视频| 一区二区三区在线不卡| 在线亚洲人成电影网站色www| 一区二区三区影院| 5858s免费视频成人| 日韩黄色一级片| 精品区一区二区| 成人一区二区三区在线观看| 亚洲桃色在线一区| 欧美日韩一区二区三区四区| 天天色天天爱天天射综合| 337p亚洲精品色噜噜狠狠| 免费在线观看精品| 久久久www免费人成精品| 国产999精品久久久久久| 亚洲免费观看高清完整版在线观看| 欧美天堂一区二区三区| 青青国产91久久久久久| 日本一区二区三区免费乱视频| 99久久99久久久精品齐齐| 爽好多水快深点欧美视频| 精品久久国产97色综合| jiyouzz国产精品久久|