Subversion Repositories Kolibri OS

Rev

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

Rev 5256 Rev 6108
Line 52... Line 52...
52
		push eax
52
		push eax
53
		stdcall dword[edx+offs_cont_gl_resize_viewport], edx ;gl_resize_viewport(context,&xsize_req,&ysize_req)
53
		stdcall dword[edx+offs_cont_gl_resize_viewport], edx ;gl_resize_viewport(context,&xsize_req,&ysize_req)
54
		cmp eax,0
54
		cmp eax,0
55
		je @f
55
		je @f
56
			stdcall dbg_print,f_vp,err_4
56
			stdcall dbg_print,sz_glViewport,err_4
57
	@@:
57
	@@:
58
 
58
 
Line 59... Line 59...
59
	mov ecx,[xsize_req]
59
	mov ecx,[xsize_req]
60
	sub ecx,[xmin]
60
	sub ecx,[xmin]
61
	mov [xsize],ecx
61
	mov [xsize],ecx
Line 65... Line 65...
65
	cmp ecx,0
65
	cmp ecx,0
66
	jg @f
66
	jg @f
67
	cmp dword[xsize],0
67
	cmp dword[xsize],0
68
	jg @f
68
	jg @f
69
		stdcall dbg_print,f_vp,err_5
69
		stdcall dbg_print,sz_glViewport,err_5
70
	@@:
70
	@@:
71
if DEBUG ;glopViewport
71
	mov ecx,[xmin]
72
push edi
-
 
73
	mov ecx,80
-
 
74
	mov eax,[xmin]
-
 
75
	lea edi,[buf_param]
-
 
76
	stdcall convert_int_to_str,ecx
-
 
77
	stdcall str_n_cat,edi,txt_zp_sp,2
-
 
78
	stdcall str_len,edi
-
 
79
	add edi,eax
-
 
80
	sub ecx,eax
-
 
81
 
-
 
82
	mov eax,[ymin]
-
 
83
	stdcall convert_int_to_str,ecx
-
 
84
	stdcall str_n_cat,edi,txt_zp_sp,2
-
 
85
	stdcall str_len,edi
-
 
86
	add edi,eax
-
 
87
	sub ecx,eax
-
 
88
 
-
 
89
	mov eax,[xsize]
-
 
90
	stdcall convert_int_to_str,ecx
-
 
91
	stdcall str_n_cat,edi,txt_zp_sp,2
-
 
92
	stdcall str_len,edi
-
 
93
	add edi,eax
-
 
94
	sub ecx,eax
-
 
95
 
-
 
96
	mov eax,[ysize]
-
 
97
	stdcall convert_int_to_str,ecx
-
 
98
 
-
 
99
	stdcall str_n_cat,edi,txt_nl,2
-
 
100
	stdcall dbg_print,f_vp,buf_param
-
 
101
pop edi
-
 
102
end if
-
 
103
	mov ecx,[xmin]
-
 
104
	mov dword[edx+offs_cont_viewport+offs_vpor_xmin],ecx
72
	mov dword[edx+offs_cont_viewport+offs_vpor_xmin],ecx
105
	mov ecx,[ymin]
73
	mov ecx,[ymin]
106
	mov dword[edx+offs_cont_viewport+offs_vpor_ymin],ecx
74
	mov dword[edx+offs_cont_viewport+offs_vpor_ymin],ecx
107
	mov ecx,[xsize]
75
	mov ecx,[xsize]
108
	mov dword[edx+offs_cont_viewport+offs_vpor_xsize],ecx
76
	mov dword[edx+offs_cont_viewport+offs_vpor_xsize],ecx