Mac OS Pygame 使用不推荐使用的函数 CGSFLushWindow [英] Mac OS Pygame using a deprecated function CGSFlushWindow

查看:41
本文介绍了Mac OS Pygame 使用不推荐使用的函数 CGSFLushWindow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 OS Mountain Lion 下以 32 位模式运行 Python 2.7.3,我刚刚开始使用 Pygame.我在终端窗口中不断收到以下错误消息:

I am running Python 2.7.3 in 32 bit mode underOS Mountain Lion and I have just started using Pygame. I keep getting the following error message in the terminal window:

2012-12-31 10:58:03.695 Python[12097:f07] Warning once: This application, or a library it
uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of 
QuickDraw and move to Quartz.

Dec 31 10:58:03 bigden.local Python[12097] <Error>: The function `CGSFlushWindow' is 
obsolete and will be removed in an upcoming update. Unfortunately, this application, or a 
library it uses, is using this obsolete function, and is thereby contributing to an 
overall degradation of system performance. Please use `CGSFlushWindowContentRegion' 
instead.

有什么办法可以避免这种情况?有 Pygame 修复吗?

Any way to avoid this? Is there a Pygame fix coming?

推荐答案

尝试安装版本 1.9.2pre.我不会再遇到这些错误了.

Try installing version 1.9.2pre. I don't get those errors any more.

这篇关于Mac OS Pygame 使用不推荐使用的函数 CGSFLushWindow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆