Browse Source

Added EVENT_WINDOWDISPLAYCHANGE event..

Brucey 3 years ago
parent
commit
ee1a5857b0
2 changed files with 3 additions and 0 deletions
  1. 2 0
      event.mod/event.bmx
  2. 1 0
      event.mod/event.h

+ 2 - 0
event.mod/event.bmx

@@ -193,6 +193,7 @@ Const EVENT_WINDOWACCEPT:Int=$4005
 Const EVENT_WINDOWMINIMIZE:Int=$4006
 Const EVENT_WINDOWMAXIMIZE:Int=$4007
 Const EVENT_WINDOWRESTORE:Int=$4008
+Const EVENT_WINDOWDISPLAYCHANGE:Int=$4009
 Const EVENT_DISPLAYORIENTATION:Int=$4020
 Const EVENT_DISPLAYCONNECT:Int=$4021
 Const EVENT_DISPLAYDISCONNECT:Int=$4022
@@ -244,6 +245,7 @@ TEvent.RegisterId EVENT_WINDOWACCEPT,"WindowAccept"
 TEvent.RegisterId EVENT_WINDOWMINIMIZE,"WindowMinimize"
 TEvent.RegisterId EVENT_WINDOWMAXIMIZE,"WindowMaximize"
 TEvent.RegisterId EVENT_WINDOWRESTORE,"WindowRestore"
+TEvent.RegisterId EVENT_WINDOWDISPLAYCHANGE,"WindowDisplayChange"
 TEvent.RegisterId EVENT_DISPLAYORIENTATION,"DisplayOrientation"
 TEvent.RegisterId EVENT_DISPLAYCONNECT,"DisplayConnect"
 TEvent.RegisterId EVENT_DISPLAYDISCONNECT,"DisplayDisconnect"

+ 1 - 0
event.mod/event.h

@@ -50,6 +50,7 @@ enum{
 	BBEVENT_WINDOWMINIMIZE=0x4006,
 	BBEVENT_WINDOWMAXIMIZE=0x4007,
 	BBEVENT_WINDOWRESTORE=0x4008,
+	BBEVENT_WINDOWDISPLAYCHANGE=0x4009,
 	BBEVENT_DISPLAYORIENTATION=0x4020,
 	BBEVENT_DISPLAYCONNECT=0x4021,
 	BBEVENT_DISPLAYDISCONNECT=0x4022,