Subversion Repositories Kolibri OS

Rev

Rev 9015 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9015 Rev 9597
Line 132... Line 132...
132
void DrawWindow()
132
void DrawWindow()
133
{
133
{
134
	unsigned i;
134
	unsigned i;
Line 135... Line 135...
135
 
135
 
136
	sc.get();
136
	sc.get();
137
	DefineAndDrawWindow(screen.width-400, screen.height/3, 280, 
137
	DefineAndDrawWindow(screen.w-400, screen.h/3, 280, 
138
		skin_height + 50+PD+PD, 0x34, sc.work, "EasyShot",0);
138
		skin_h + 50+PD+PD, 0x34, sc.work, "EasyShot",0);
Line 139... Line 139...
139
	GetProcessInfo(#Form, SelfInfo);
139
	GetProcessInfo(#Form, SelfInfo);
140
 
140
 
141
	if (!recording) {
141
	if (!recording) {
Line 163... Line 163...
163
}
163
}
Line 164... Line 164...
164
 
164
 
165
dword ScreenshotBuf()
165
dword ScreenshotBuf()
166
{
166
{
167
	static dword screenshot;
167
	static dword screenshot;
168
	if (!screenshot) screenshot = malloc(screen.width * screen.height * 3);	
168
	if (!screenshot) screenshot = malloc(screen.w * screen.h * 3);	
169
	return screenshot;
169
	return screenshot;
Line 170... Line 170...
170
}
170
}
171
 
171
 
Line 191... Line 191...
191
}
191
}
Line 192... Line 192...
192
 
192
 
193
void MakeScreenshot() 
193
void MakeScreenshot() 
194
{
194
{
195
	if (I_Path = GetSavingPath()) {
195
	if (I_Path = GetSavingPath()) {
196
		CopyScreen(ScreenshotBuf(), 0, 0, screen.width, screen.height);
196
		CopyScreen(ScreenshotBuf(), 0, 0, screen.w, screen.h);
197
		I_Param = save_image(ScreenshotBuf(), screen.width, screen.height, I_Path);
197
		I_Param = save_image(ScreenshotBuf(), screen.w, screen.h, I_Path);
198
		if (!I_Param) I_Param = I_Path;
198
		if (!I_Param) I_Param = I_Path;
199
		DrawStatusBar(I_Param);
199
		DrawStatusBar(I_Param);
200
	} else {
200
	} else {
201
		recording = false;
201
		recording = false;
Line 225... Line 225...
225
 
225
 
226
void EventSettingsClick()
226
void EventSettingsClick()
227
{
227
{
228
	show_settings ^= 1;
228
	show_settings ^= 1;
229
	@MoveSize(OLD, OLD, show_settings*65 + 280, 
229
	@MoveSize(OLD, OLD, show_settings*65 + 280, 
230
		show_settings*110 + skin_height + PD+PD+50);
230
		show_settings*110 + skin_h + PD+PD+50);
Line 231... Line 231...
231
}
231
}
232
 
232
 
233
void EventChooseSavePathClick()
233
void EventChooseSavePathClick()