mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
dd66eb13d3
the server at initial connect. PR: ports/114869 Submitted by: ehaupt
31 lines
947 B
C++
31 lines
947 B
C++
--- ./lib/server/CServer.cpp.orig 2006-04-02 03:47:04.000000000 +0200
|
|
+++ ./lib/server/CServer.cpp 2007-07-24 16:59:59.000000000 +0200
|
|
@@ -434,16 +434,23 @@
|
|
SInt32 x, SInt32 y, bool forScreensaver)
|
|
{
|
|
assert(dst != NULL);
|
|
+ assert(m_active != NULL);
|
|
+
|
|
+ LOG((CLOG_INFO "switch from \"%s\" to \"%s\" at %d,%d", getName(m_active).c_str(), getName(dst).c_str(), x, y));
|
|
+
|
|
#ifndef NDEBUG
|
|
{
|
|
SInt32 dx, dy, dw, dh;
|
|
dst->getShape(dx, dy, dw, dh);
|
|
- assert(x >= dx && y >= dy && x < dx + dw && y < dy + dh);
|
|
+
|
|
+ if(!(x >= dx && y >= dy && x < dx + dw && y < dy + dh)) {
|
|
+ LOG((CLOG_ERR "debug check failed"));
|
|
+ LOG((CLOG_ERR "x=%d dx=%d dw=%d", x, dx, dw));
|
|
+ LOG((CLOG_ERR "y=%d dy=%d dh=%d", y, dy, dh));
|
|
+ assert(0);
|
|
+ }
|
|
}
|
|
#endif
|
|
- assert(m_active != NULL);
|
|
-
|
|
- LOG((CLOG_INFO "switch from \"%s\" to \"%s\" at %d,%d", getName(m_active).c_str(), getName(dst).c_str(), x, y));
|
|
|
|
// stop waiting to switch
|
|
stopSwitch();
|