to improved safe

This commit is contained in:
hyzboy 2024-03-16 00:37:55 +08:00
parent 2f93a1bb00
commit 74caaea566
3 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,8 @@ namespace hgl
MouseEvent():InputEvent(InputEventSource::Mouse) MouseEvent():InputEvent(InputEventSource::Mouse)
{ {
med=nullptr;
x=y=0;
hgl_zero(pressed_statues); hgl_zero(pressed_statues);
} }
virtual ~MouseEvent()=default; virtual ~MouseEvent()=default;

View File

@ -309,6 +309,8 @@ namespace hgl
RingBufferSafeWrite(io::RingOutputStream *ros) RingBufferSafeWrite(io::RingOutputStream *ros)
{ {
rb=ros->GetRingBuffer(); rb=ros->GetRingBuffer();
size=-1;
} }
int Start() int Start()

View File

@ -194,6 +194,7 @@ namespace hgl
KVData *obj=GetListObject(data_list,index); KVData *obj=GetListObject(data_list,index);
if(!obj)return(nullptr);
return &(obj->value); return &(obj->value);
} }