Subversion Repositories Kolibri OS

Rev

Rev 9597 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9597 Rev 9602
Line 44... Line 44...
44
		if (GetKeys()==27) ExitProcess();
44
		if (GetKeys()==27) ExitProcess();
45
		break;
45
		break;
46
	case evReDraw:
46
	case evReDraw:
47
		sc.get();
47
		sc.get();
48
		DefineAndDrawWindow(screen.w-fw/2,screen.h-fh/2,fw,fh+skin_h,0x33,0xE0DFE3,"Rainbow (rgb test)",0);
48
		DefineAndDrawWindow(screen.w-fw/2,screen.h-fh/2,fw,fh+skin_h,0x33,0xE0DFE3,"Rainbow (rgb test)",0);
49
		_PutImage(0,0,256,256,#image);
49
		PutImage(0,0,256,256,#image);
50
		DrawCaptButton(280,20, 110,30,DRAW1_BTN,sc.button,sc.button_text,"Draw 1");
50
		DrawCaptButton(280,20, 110,30,DRAW1_BTN,sc.button,sc.button_text,"Draw 1");
51
		DrawCaptButton(280,60, 110,30,DRAW2_BTN,sc.button,sc.button_text,"Draw 2");
51
		DrawCaptButton(280,60, 110,30,DRAW2_BTN,sc.button,sc.button_text,"Draw 2");
52
		DrawCaptButton(280,100,110,30,SETBG_BTN,sc.button,sc.button_text,"Background");
52
		DrawCaptButton(280,100,110,30,SETBG_BTN,sc.button,sc.button_text,"Background");
53
  }
53
  }
54
}
54
}
Line 104... Line 104...
104
	  image[pos].b = i1;
104
	  image[pos].b = i1;
105
	  image[pos].r = 0;
105
	  image[pos].r = 0;
106
	  image[pos].g = 0;
106
	  image[pos].g = 0;
107
	}
107
	}
108
  }
108
  }
109
  _PutImage(0,0,256,256,#image);
109
  PutImage(0,0,256,256,#image);
110
}
110
}
Line 111... Line 111...
111
 
111
 
112
void EventDraw2()
112
void EventDraw2()
113
{
113
{
Line 120... Line 120...
120
	  image[t2].r = i4;
120
	  image[t2].r = i4;
121
	  image[t2].g = i1;
121
	  image[t2].g = i1;
122
	  image[t2].b = 0;
122
	  image[t2].b = 0;
123
	}
123
	}
124
  }
124
  }
125
  _PutImage(0,0,256,256,#image);
125
  PutImage(0,0,256,256,#image);
126
}
126
}
Line 127... Line 127...
127
 
127
 
128
void EventSetBackground(dword img_pointer, w,h)
128
void EventSetBackground(dword img_pointer, w,h)
129
{
129
{