Commit 5a9cd62c authored by daFischer's avatar daFischer
Browse files

=Fixed a bug in CursorMessage

parent 2ffd3eac
......@@ -50,6 +50,8 @@ void CursorMessage::paint(SDL_Surface* screen, ProtocolPreferences* prefs) {
//printf("CursorMessage 1, encoding = %d\n",encoding);
if(cursor==NULL)
{
if (w * h == 0)
return;
cursor = SDL_CreateRGBSurface(screen->flags, mask.w, mask.h, screen->format->BitsPerPixel, screen->format->Rmask, screen->format->Gmask, screen->format->Bmask, 0xffffffff-screen->format->Rmask-screen->format->Gmask-screen->format->Bmask);
}
showCursor=true;
......@@ -59,6 +61,7 @@ void CursorMessage::paint(SDL_Surface* screen, ProtocolPreferences* prefs) {
SDL_LockSurface(cursor);
memset(cursor->pixels,0x0,cursor->w*cursor->h*cursor->format->BytesPerPixel);
SDL_UnlockSurface(cursor);
cursor
handleCursorShapeUpdate();
//printf("CursorMessage last\n");
}
......
......@@ -137,7 +137,7 @@
<script type='text/javascript'>
var x_path="TTT";
var x_filename="Programmiersprachen_2013_10_21"; //"<?php $path=$_GET['path']; echo $path; ?>"
var x_filename="Virtual_Machines_2014_04_29"; //"<?php $path=$_GET['path']; echo $path; ?>"
var x_getPath=function(end){
return x_path+"/"+x_filename+"_a/"+x_filename+"."+end;
......
This diff is collapsed.
......@@ -34,7 +34,7 @@ const string path = "TTT";
string filename = "";
#else
const string path = "TTT";
string filename = "GAD_2014_04_08-merged";// Diskrete_Strukturen_2013_11_26 , Programmiersprachen_2013_10_21 , GAD_2014_04_08-merged , Programmoptimierung_2013_10_16 , ZUE_Diskrete_Strukturen_2013_10_30
string filename = "Virtual_Machines_2014_04_08";// Diskrete_Strukturen_2013_11_26 , Programmiersprachen_2013_10_21 , GAD_2014_04_08-merged , Programmoptimierung_2013_10_16 , ZUE_Diskrete_Strukturen_2013_10_30
#endif
int main();
......
......@@ -7,11 +7,8 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/home/user/NetBeansProjects/TTTPlayer/Messages/Message.cpp</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/Messages/RawMessage.cpp</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/main.h</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/Messages/HextileMessage.cpp</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/main.cpp</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/Constants.h</file>
<file>file:/home/user/NetBeansProjects/TTTPlayer/Video.cpp</file>
</group>
</open-files>
</project-private>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment