graphicscomposition/openwfsupport/src/surfacestream.cpp
changeset 168 2bd88482bfe5
parent 152 9f1c3fea0f87
equal deleted inserted replaced
152:9f1c3fea0f87 168:2bd88482bfe5
  1095                 {
  1095                 {
  1096                 case ESOWF_EventDisplayed:
  1096                 case ESOWF_EventDisplayed:
  1097                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1097                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1098                         {
  1098                         {
  1099                         Displayed(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1099                         Displayed(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1100                         delete callBackData;
  1100                         delete (TNotificationDisplayed*) callBackData;
  1101                         iCallBacks[count].Reset();
  1101                         iCallBacks[count].Reset();
  1102                         if (iNumberOfScreenAttachedDisplayedNotif > 0)
  1102                         if (iNumberOfScreenAttachedDisplayedNotif > 0)
  1103                             {
  1103                             {
  1104                             iNumberOfScreenAttachedDisplayedNotif--;
  1104                             iNumberOfScreenAttachedDisplayedNotif--;
  1105                             }
  1105                             }
  1109              
  1109              
  1110                 case ESOWF_EventAvailable:
  1110                 case ESOWF_EventAvailable:
  1111                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1111                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1112                         {
  1112                         {
  1113                         Available(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1113                         Available(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1114                         delete callBackData;
  1114                         delete (TNotificationAvailable*) callBackData;
  1115                         iCallBacks[count].Reset();
  1115                         iCallBacks[count].Reset();
  1116                         if (iNumberOfScreenAttachedAvailableNotif > 0)
  1116                         if (iNumberOfScreenAttachedAvailableNotif > 0)
  1117                             {
  1117                             {
  1118                             iNumberOfScreenAttachedAvailableNotif--;
  1118                             iNumberOfScreenAttachedAvailableNotif--;
  1119                             }
  1119                             }
  1123              
  1123              
  1124                 case ESOWF_EventDisplayedX:
  1124                 case ESOWF_EventDisplayedX:
  1125                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1125                     if (callBackData && (!aData || (iCallBacks[count].iScreenNumber == susScreenNumber)))
  1126                         {
  1126                         {
  1127                         DisplayedXTimes(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1127                         DisplayedXTimes(ESOWF_ObserverCancel, iCallBacks[count].iScreenNumber, NULL, callBackData, NULL);
  1128                         delete callBackData;
  1128                         delete (TNotificationDisplayedX*) callBackData;
  1129                         iCallBacks[count].Reset();
  1129                         iCallBacks[count].Reset();
  1130                         if (iNumberOfScreenAttachedDisplayedXNotif)
  1130                         if (iNumberOfScreenAttachedDisplayedXNotif)
  1131                             {
  1131                             {
  1132                             iNumberOfScreenAttachedDisplayedXNotif--;
  1132                             iNumberOfScreenAttachedDisplayedXNotif--;
  1133                             }
  1133                             }